Enum conrod_core::color::Color [−][src]
Expand description
Color supporting RGB and HSL variants.
Variants
Red, Green, Blue, Alpha - All values’ scales represented between 0.0 and 1.0.
Hue, Saturation, Lightness, Alpha - all values scales represented between 0.0 and 1.0.
Implementations
Produce a complementary color. The two colors will accent each other. This is the same as rotating the hue by 180 degrees.
Return either black or white, depending which contrasts the Color the most. This will be useful for determining a readable color for text on any given background Color.
Extract the components of a color in the RGB format within a fixed-size array.
Same as to_fsa
, except r, g, b and a are represented in byte form.
Return the same color but with the given luminance.
Return the same color but with the alpha multiplied by the given alpha.
Return the same color but with the given alpha.
Return a highlighted version of the current Color.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Color
impl UnwindSafe for Color
Blanket Implementations
Mutably borrows from an owned value. Read more