Type Definition graphics::types::Color [] [src]

type Color = [ColorComponent; 4];

[red, green, blue, alpha]

All values are between 0.0 and 1.0. For example, black is [0.0, 0.0, 0.0, 1.0] and white is [1.0, 1.0, 1.0, 1.0].

Trait Implementations

impl Colored for Color
[src]

[src]

Multiplies with red, green, blue and alpha values.

[src]

Rotates hue by radians.

[src]

Mixes the current color with white. Read more

[src]

Mixes the current color with black. Read more

[src]

Rotates hue by degrees.