pub struct Hsluv {
pub h: f64,
pub s: f64,
pub l: f64,
pub alpha: Option<f64>,
}Expand description
HSLuv color. Hue in 0..360, saturation in 0..100, lightness in 0..100.
Fields§
§h: f64Hue in degrees (0..360).
s: f64Saturation in 0..100.
l: f64Lightness in 0..100.
alpha: Option<f64>Optional alpha in 0..1.
Trait Implementations§
Source§impl ColorSpace for Hsluv
impl ColorSpace for Hsluv
Source§const MODE: &'static str = "hsluv"
const MODE: &'static str = "hsluv"
Stable identifier for this space (matches culori’s
mode string).Source§const CHANNELS: &'static [&'static str]
const CHANNELS: &'static [&'static str]
The space’s natural channels in canonical order. Alpha is excluded:
it is a universal meta-channel accessed via
alpha
rather than a channel of any particular space.Source§fn with_alpha(self, alpha: Option<f64>) -> Self
fn with_alpha(self, alpha: Option<f64>) -> Self
Returns a copy of
self with the given alpha.Source§fn from_xyz65(xyz: Xyz65) -> Self
fn from_xyz65(xyz: Xyz65) -> Self
Construct a color of this space from the XYZ D65 hub space.
impl Copy for Hsluv
impl StructuralPartialEq for Hsluv
Auto Trait Implementations§
impl Freeze for Hsluv
impl RefUnwindSafe for Hsluv
impl Send for Hsluv
impl Sync for Hsluv
impl Unpin for Hsluv
impl UnsafeUnpin for Hsluv
impl UnwindSafe for Hsluv
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