#[repr(C)]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: f32
The L* value (achromatic luminance) of the colour in 0–100 range.
u: f32
The 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: f32
The 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 AddAssign<f32> for Luv
impl AddAssign<f32> for Luv
Source§fn add_assign(&mut self, rhs: f32)
fn add_assign(&mut self, rhs: f32)
+=
operation. Read moreSource§impl AddAssign for Luv
impl AddAssign for Luv
Source§fn add_assign(&mut self, rhs: Luv)
fn add_assign(&mut self, rhs: Luv)
+=
operation. Read moreSource§impl DivAssign<f32> for Luv
impl DivAssign<f32> for Luv
Source§fn div_assign(&mut self, rhs: f32)
fn div_assign(&mut self, rhs: f32)
/=
operation. Read moreSource§impl DivAssign for Luv
impl DivAssign for Luv
Source§fn div_assign(&mut self, rhs: Luv)
fn div_assign(&mut self, rhs: Luv)
/=
operation. Read moreSource§impl MulAssign<f32> for Luv
impl MulAssign<f32> for Luv
Source§fn mul_assign(&mut self, rhs: f32)
fn mul_assign(&mut self, rhs: f32)
*=
operation. Read moreSource§impl MulAssign for Luv
impl MulAssign for Luv
Source§fn mul_assign(&mut self, rhs: Luv)
fn mul_assign(&mut self, rhs: Luv)
*=
operation. Read moreSource§impl PartialOrd for Luv
impl PartialOrd for Luv
Source§impl SubAssign<f32> for Luv
impl SubAssign<f32> for Luv
Source§fn sub_assign(&mut self, rhs: f32)
fn sub_assign(&mut self, rhs: f32)
-=
operation. Read moreSource§impl SubAssign for Luv
impl SubAssign for Luv
Source§fn sub_assign(&mut self, rhs: Luv)
fn sub_assign(&mut self, rhs: Luv)
-=
operation. Read more