Struct cint::EncodedSrgb [−][src]
#[repr(C)]pub struct EncodedSrgb<ComponentTy> { pub r: ComponentTy, pub g: ComponentTy, pub b: ComponentTy, }
Expand description
A color in the encoded sRGB color space.
This color space uses the sRGB/Rec.709 primaries, D65 white point, and sRGB transfer functions. The encoded version is nonlinear, with the sRGB OETF, aka “gamma compensation”, applied.
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<EncodedSrgb<ComponentTy>>> for EncodedSrgb<ComponentTy>
impl<ComponentTy: Clone + Copy> From<Alpha<EncodedSrgb<ComponentTy>>> for EncodedSrgb<ComponentTy>
Performs the conversion.
impl<ComponentTy: Clone + Copy> From<PremultipliedAlpha<EncodedSrgb<ComponentTy>>> for EncodedSrgb<ComponentTy>
impl<ComponentTy: Clone + Copy> From<PremultipliedAlpha<EncodedSrgb<ComponentTy>>> for EncodedSrgb<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 !=
.
impl<ComponentTy: PartialOrd> PartialOrd<EncodedSrgb<ComponentTy>> for EncodedSrgb<ComponentTy>
impl<ComponentTy: PartialOrd> PartialOrd<EncodedSrgb<ComponentTy>> for EncodedSrgb<ComponentTy>
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 EncodedSrgb<ComponentTy> where
ComponentTy: Send,
impl<ComponentTy> Sync for EncodedSrgb<ComponentTy> where
ComponentTy: Sync,
impl<ComponentTy> Unpin for EncodedSrgb<ComponentTy> where
ComponentTy: Unpin,