Type Alias nannou::color::Rgb8

source ·
pub type Rgb8 = Rgb<Srgb, u8>;
Expand description

The same as Rgb, but with u8’s.

Aliased Type§

struct Rgb8 {
    pub red: u8,
    pub green: u8,
    pub blue: u8,
    pub standard: PhantomData<Srgb>,
}

Fields§

§red: u8

The amount of red light, where 0.0 is no red light and 1.0f (or 255u8) is the highest displayable amount.

§green: u8

The amount of green light, where 0.0 is no green light and 1.0f (or 255u8) is the highest displayable amount.

§blue: u8

The amount of blue light, where 0.0 is no blue light and 1.0f (or 255u8) is the highest displayable amount.

§standard: PhantomData<Srgb>

The kind of RGB standard. sRGB is the default.