Struct cint::LinearSrgb [−][src]
#[repr(C)]pub struct LinearSrgb<ComponentTy> { pub r: ComponentTy, pub g: ComponentTy, pub b: ComponentTy, }
Expand description
A color in the linear (decoded) sRGB color space.
This color space uses the sRGB/Rec.709 primaries, D65 white point,
and sRGB transfer functions. This version is linear, with the
sRGB EOTF, aka “inverse gamma compensation”, applied in order to
decode it from EncodedSrgb
Fields
r: ComponentTy
The red component.
g: ComponentTy
The green component.
b: ComponentTy
The blue component.
Trait Implementations
type ComponentTy = CTy
Performs the conversion.
impl<ComponentTy: Clone + Copy> From<Alpha<LinearSrgb<ComponentTy>>> for LinearSrgb<ComponentTy>
impl<ComponentTy: Clone + Copy> From<Alpha<LinearSrgb<ComponentTy>>> for LinearSrgb<ComponentTy>
Performs the conversion.
impl<ComponentTy: Clone + Copy> From<PremultipliedAlpha<LinearSrgb<ComponentTy>>> for LinearSrgb<ComponentTy>
impl<ComponentTy: Clone + Copy> From<PremultipliedAlpha<LinearSrgb<ComponentTy>>> for LinearSrgb<ComponentTy>
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<ComponentTy> Send for LinearSrgb<ComponentTy> where
ComponentTy: Send,
impl<ComponentTy> Sync for LinearSrgb<ComponentTy> where
ComponentTy: Sync,
impl<ComponentTy> Unpin for LinearSrgb<ComponentTy> where
ComponentTy: Unpin,