[][src]Trait tincture::Hex

pub trait Hex: Sized {
    pub fn components(self) -> (f32, f32, f32);

    pub fn hex(self) -> u32 { ... }
}

Allows converting colors into single u32 hex values.

Required methods

pub fn components(self) -> (f32, f32, f32)[src]

The components of the color.

Invariant: each component must have a minimum of 0 and a maximum of 1.

Loading content...

Provided methods

pub fn hex(self) -> u32[src]

Converts the color to a hex value.

Loading content...

Implementors

impl Hex for LinearRgb[src]

impl Hex for Srgb[src]

Loading content...