Trait piston_window::Colored
source · pub trait Colored: Sized {
// Required methods
fn mul_rgba(self, r: f32, g: f32, b: f32, a: f32) -> Self;
fn hue_rad(self, angle: f32) -> Self;
// Provided methods
fn tint(self, f: f32) -> Self { ... }
fn shade(self, f: f32) -> Self { ... }
fn hue_deg(self, angle: f32) -> Self { ... }
}
Expand description
Implemented by contexts that contains color.
Required Methods§
Provided Methods§
Object Safety§
This trait is not object safe.