pub struct Hpluv {
pub h: f64,
pub s: f64,
pub l: f64,
pub alpha: Option<f64>,
}Expand description
HPLuv color. Hue in 0..360, saturation may exceed 100 for vivid hues, lightness in 0..100.
Fields§
§h: f64Hue in degrees.
s: f64Saturation (≥ 0; may exceed 100 outside the inscribed circle).
l: f64Lightness in 0..100.
alpha: Option<f64>Optional alpha in 0..1.
Trait Implementations§
Source§impl ColorSpace for Hpluv
impl ColorSpace for Hpluv
Source§const MODE: &'static str = "hpluv"
const MODE: &'static str = "hpluv"
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 Hpluv
impl StructuralPartialEq for Hpluv
Auto Trait Implementations§
impl Freeze for Hpluv
impl RefUnwindSafe for Hpluv
impl Send for Hpluv
impl Sync for Hpluv
impl Unpin for Hpluv
impl UnsafeUnpin for Hpluv
impl UnwindSafe for Hpluv
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