Struct tuix::Color [−]
#[repr(packed)]pub struct Color {
pub data: u32,
}
Fields
data: u32
Implementations
impl Color
impl Color
Returns color value specified by hue, saturation and lightness. HSL values are all in range [0..1], alpha will be set to 1.0.
Returns color value specified by hue, saturation, lightness and alpha. All values are in range [0..1]
pub fn interpolate(start_color: Color, end_color: Color, scale: f64) -> Color
impl Color
impl Color
Trait Implementations
impl Interpolator for Color
impl Interpolator for Color
pub fn interpolate(start: &Color, end: &Color, t: f32) -> Color
Compare two colors (Do not take care of alpha)
Auto Trait Implementations
impl RefUnwindSafe for Color
impl UnwindSafe for Color
Blanket Implementations
Mutably borrows from an owned value. Read more