Struct cint::Hsl [−][src]
#[repr(C)]pub struct Hsl<ComponentTy> { pub h: ComponentTy, pub s: ComponentTy, pub l: ComponentTy, }
Expand description
A color in the HSL color space.
Since HSL is a relative color space, it is required to know the RGB space which it was transformed from. We define this as the linear sRGB space, as that is the most common case.
Fields
h: ComponentTyExpand description
The H (hue) component. Varies from 0 to 1.
s: ComponentTyExpand description
The S (saturation) component. Varies from 0 to 1.
l: ComponentTyExpand description
The L (lightness) component. Varies from 0 to 1.
Trait Implementations
impl<ComponentTy> From<PremultipliedAlpha<ComponentTy, Hsl<ComponentTy>>> for Hsl<ComponentTy>[src]
impl<ComponentTy> From<PremultipliedAlpha<ComponentTy, Hsl<ComponentTy>>> for Hsl<ComponentTy>[src]fn from(
col_alpha: PremultipliedAlpha<ComponentTy, Hsl<ComponentTy>>
) -> Hsl<ComponentTy>[src]
fn from(
col_alpha: PremultipliedAlpha<ComponentTy, Hsl<ComponentTy>>
) -> Hsl<ComponentTy>[src]Performs the conversion.
impl<ComponentTy: Ord> Ord for Hsl<ComponentTy>[src]
impl<ComponentTy: Ord> Ord for Hsl<ComponentTy>[src]impl<ComponentTy: PartialOrd> PartialOrd<Hsl<ComponentTy>> for Hsl<ComponentTy>[src]
impl<ComponentTy: PartialOrd> PartialOrd<Hsl<ComponentTy>> for Hsl<ComponentTy>[src]fn partial_cmp(&self, other: &Hsl<ComponentTy>) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Hsl<ComponentTy>) -> Option<Ordering>[src]This method returns an ordering between self and other values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl<ComponentTy: Copy> Copy for Hsl<ComponentTy>[src]
impl<ComponentTy: Eq> Eq for Hsl<ComponentTy>[src]
impl<ComponentTy: Pod> Pod for Hsl<ComponentTy>[src]
impl<ComponentTy> StructuralEq for Hsl<ComponentTy>[src]
impl<ComponentTy> StructuralPartialEq for Hsl<ComponentTy>[src]
Auto Trait Implementations
impl<ComponentTy> Send for Hsl<ComponentTy> where
ComponentTy: Send,
ComponentTy: Send,
impl<ComponentTy> Sync for Hsl<ComponentTy> where
ComponentTy: Sync,
ComponentTy: Sync,
impl<ComponentTy> Unpin for Hsl<ComponentTy> where
ComponentTy: Unpin,
ComponentTy: Unpin,