Type Alias nannou_core::prelude::Srgb

source ·
pub type Srgb<T = f32> = Rgb<Srgb, T>;
Expand description

Nonlinear sRGB.

Aliased Type§

struct Srgb<T = f32> {
    pub red: T,
    pub green: T,
    pub blue: T,
    pub standard: PhantomData<Srgb>,
}

Fields§

§red: T

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

§green: T

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

§blue: T

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.

Trait Implementations§

source§

impl<T, S> IntoLinSrgba<S> for Srgb<T>
where T: Component, S: Component + Float,

source§

fn into_lin_srgba(self) -> LinSrgba<S>

Convert self into RGBA.