pub struct Oklch {
pub l: f32,
pub c: f32,
pub h: f32,
pub a: f32,
}Expand description
A color in the Oklab color space, represented as Oklch.
Fields§
§l: f32Perceptual lightness: 0 is pure black, 1 is pure white.
c: f32Chromatic intensity: 0 is achromatic, +0.5 is usually the upper limit.
h: f32Hue angle, in radians.
a: f32Alpha channel.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Oklch
impl RefUnwindSafe for Oklch
impl Send for Oklch
impl Sync for Oklch
impl Unpin for Oklch
impl UnsafeUnpin for Oklch
impl UnwindSafe for Oklch
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