[−][src]Type Definition graphics::types::Color
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]
fn mul_rgba(
self,
r: ColorComponent,
g: ColorComponent,
b: ColorComponent,
a: ColorComponent
) -> Self
[src]
self,
r: ColorComponent,
g: ColorComponent,
b: ColorComponent,
a: ColorComponent
) -> Self
fn hue_rad(self, angle: ColorComponent) -> Self
[src]
fn tint(self, f: ColorComponent) -> Self
[src]
Mixes the current color with white. Read more
fn shade(self, f: ColorComponent) -> Self
[src]
Mixes the current color with black. Read more
fn hue_deg(self, angle: ColorComponent) -> Self
[src]
Rotates hue by degrees.