pub struct LabAlpha<T: Float + Send + Sync> { /* private fields */ }
Expand description
Lab with alpha channel.
Implementations§
Source§impl<T: Float + Send + Sync> LabAlpha<T>
impl<T: Float + Send + Sync> LabAlpha<T>
Sourcepub fn set_lightness(&mut self, l: T)
pub fn set_lightness(&mut self, l: T)
Set the lightness
component.
Sourcepub fn set_a_star(&mut self, a: T)
pub fn set_a_star(&mut self, a: T)
Set the a_star
component.
Sourcepub fn set_b_star(&mut self, b: T)
pub fn set_b_star(&mut self, b: T)
Set the b_star
component.
Trait Implementations§
Source§impl<T: Float + Send + Sync> Colour<T, { $base_components + 1 }> for LabAlpha<T>
impl<T: Float + Send + Sync> Colour<T, { $base_components + 1 }> for LabAlpha<T>
Source§fn from_hex(hex: &str) -> Result<Self, ParseColourError<ParseIntError>>
fn from_hex(hex: &str) -> Result<Self, ParseColourError<ParseIntError>>
Create a new colour from a hex string. Read more
Source§fn from_bytes(bytes: [u8; 4]) -> Self
fn from_bytes(bytes: [u8; 4]) -> Self
Create a new colour from a byte array.
Source§fn lerp(lhs: &Self, rhs: &Self, t: T) -> Self
fn lerp(lhs: &Self, rhs: &Self, t: T) -> Self
Linear interpolate between two colours of the same type.
Source§const NUM_COMPONENTS: usize = N
const NUM_COMPONENTS: usize = N
Number of components in the colour.
Source§impl<T: Float + Send + Sync> Convert<T> for LabAlpha<T>
impl<T: Float + Send + Sync> Convert<T> for LabAlpha<T>
fn to_grey(&self) -> Grey<T>
fn to_grey_alpha(&self) -> GreyAlpha<T>
fn to_hsl(&self) -> Hsl<T>
fn to_hsl_alpha(&self) -> HslAlpha<T>
fn to_hsv(&self) -> Hsv<T>
fn to_hsv_alpha(&self) -> HsvAlpha<T>
fn to_lab(&self) -> Lab<T>
fn to_lab_alpha(&self) -> LabAlpha<T>
fn to_rgb(&self) -> Rgb<T>
fn to_rgb_alpha(&self) -> RgbAlpha<T>
fn to_srgb(&self) -> Srgb<T>
fn to_srgb_alpha(&self) -> SrgbAlpha<T>
fn to_xyz(&self) -> Xyz<T>
fn to_xyz_alpha(&self) -> XyzAlpha<T>
impl<T: Copy + Float + Send + Sync> Copy for LabAlpha<T>
Auto Trait Implementations§
impl<T> Freeze for LabAlpha<T>where
T: Freeze,
impl<T> RefUnwindSafe for LabAlpha<T>where
T: RefUnwindSafe,
impl<T> Send for LabAlpha<T>
impl<T> Sync for LabAlpha<T>
impl<T> Unpin for LabAlpha<T>where
T: Unpin,
impl<T> UnwindSafe for LabAlpha<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more