[−]Trait piston_window::Colored
Implemented by contexts that contains color.
Required methods
fn mul_rgba(self, r: f32, g: f32, b: f32, a: f32) -> Self
Multiplies with red, green, blue and alpha values.
fn hue_rad(self, angle: f32) -> Self
Rotates hue by radians.
Provided methods
fn tint(self, f: f32) -> Self
Mixes the current color with white.
0 is black and 1 is white.
fn shade(self, f: f32) -> Self
Mixes the current color with black.
0 is white and 1 is black.
fn hue_deg(self, angle: f32) -> Self
Rotates hue by degrees.