Struct color::Hsv [−][src]
Fields
h: Deg<T>
s: T
v: T
Methods
impl<T: Channel> Hsv<T>
[src]
impl<T: Channel> Hsv<T>
Trait Implementations
impl<T: Clone + FloatChannel> ToRgba for Hsv<T>
[src]
impl<T: Clone + FloatChannel> ToRgba for Hsv<T>
impl<T: Clone + Channel> Clone for Hsv<T>
[src]
impl<T: Clone + Channel> Clone for Hsv<T>
fn clone(&self) -> Hsv<T>
[src]
fn clone(&self) -> Hsv<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<T: Copy + Channel> Copy for Hsv<T>
[src]
impl<T: Copy + Channel> Copy for Hsv<T>
impl<T: Debug + Channel> Debug for Hsv<T>
[src]
impl<T: Debug + Channel> Debug for Hsv<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T: Channel + NumCast> Color<T> for Hsv<T>
[src]
impl<T: Channel + NumCast> Color<T> for Hsv<T>
fn clamp_s(self, lo: T, hi: T) -> Hsv<T>
[src]
fn clamp_s(self, lo: T, hi: T) -> Hsv<T>
Clamps the components of the color to the range (lo,hi)
.
fn clamp_c(self, lo: Hsv<T>, hi: Hsv<T>) -> Hsv<T>
[src]
fn clamp_c(self, lo: Hsv<T>, hi: Hsv<T>) -> Hsv<T>
Clamps the components of the color component-wise between lo
and hi
.
fn inverse(self) -> Hsv<T>
[src]
fn inverse(self) -> Hsv<T>
Inverts the color.
fn mix(self, other: Self, value: T) -> Self
[src]
fn mix(self, other: Self, value: T) -> Self
impl<T: FloatChannel> FloatColor<T> for Hsv<T>
[src]
impl<T: FloatChannel> FloatColor<T> for Hsv<T>
fn saturate(self) -> Hsv<T>
[src]
fn saturate(self) -> Hsv<T>
Normalizes the components of the color. Modulo 360
is applied to the
h
component, and s
and v
are clamped to the range (0,1)
.
impl<T: Channel> ToHsv for Hsv<T>
[src]
impl<T: Channel> ToHsv for Hsv<T>
impl<T: Clone + Channel> ToRgb for Hsv<T>
[src]
impl<T: Clone + Channel> ToRgb for Hsv<T>