Struct primitives::foundation::colorspace::HsvColor
source · [−]Expand description
Hsv color representation
Fields
hue: f32
Hue component
saturation: f32
Saturation component
value: f32
Value component
Implementations
Trait Implementations
sourceimpl HasSaturation for HsvColor
impl HasSaturation for HsvColor
sourcefn get_saturation(self) -> f32
fn get_saturation(self) -> f32
Retrieve saturation
sourcefn set_saturation(&mut self, saturation: f32) -> Self
fn set_saturation(&mut self, saturation: f32) -> Self
Set the saturation
impl ColorSpace for HsvColor
impl ColorTransition for HsvColor
impl Copy for HsvColor
impl HasHue for HsvColor
impl NonRgbSpace for HsvColor
impl StructuralPartialEq for HsvColor
Auto Trait Implementations
impl RefUnwindSafe for HsvColor
impl Send for HsvColor
impl Sync for HsvColor
impl Unpin for HsvColor
impl UnwindSafe for HsvColor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more