Struct quicksilver::graphics::Color[][src]

pub struct Color {
    pub r: f32,
    pub g: f32,
    pub b: f32,
    pub a: f32,
}

An RGBA color represented by normalized floats

Fields

The red component of the color

The green component of the color

The blue component of the color

The alpha component of the color

Methods

impl Color
[src]

Create an identical color with a different red component

Create an identical color with a different green component

Create an identical color with a different blue component

Create an identical color with a different alpha component

impl Color
[src]

Trait Implementations

impl Clone for Color
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Color
[src]

impl Debug for Color
[src]

Formats the value using the given formatter. Read more

impl Default for Color
[src]

Returns the "default value" for a type. Read more

impl PartialEq for Color
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for Color

impl Sync for Color