Struct colorutils_rs::Luv
source · pub struct Luv {
pub l: f32,
pub u: f32,
pub v: f32,
}Expand description
Struct representing a color in CIE LUV, a.k.a. L*u*v*, color space
Fields§
§l: f32The L* value (achromatic luminance) of the colour in 0–100 range.
u: f32The u* value of the colour.
Together with v* value, it defines chromaticity of the colour. The u* coordinate represents colour’s position on red-green axis with negative values indicating more red and positive more green colour. Typical values are in -134–220 range (but exact range for ‘valid’ colours depends on luminance and v* value).
v: f32The u* value of the colour.
Together with u* value, it defines chromaticity of the colour. The v* coordinate represents colour’s position on blue-yellow axis with negative values indicating more blue and positive more yellow colour. Typical values are in -140–122 range (but exact range for ‘valid’ colours depends on luminance and u* value).
Implementations§
Trait Implementations§
source§impl EuclideanDistance for Luv
impl EuclideanDistance for Luv
fn euclidean_distance(&self, other: Luv) -> f32
source§impl PartialOrd for Luv
impl PartialOrd for Luv
impl Copy for Luv
Auto Trait Implementations§
impl Freeze for Luv
impl RefUnwindSafe for Luv
impl Send for Luv
impl Sync for Luv
impl Unpin for Luv
impl UnwindSafe for Luv
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)