Struct color::Hsv[][src]

pub struct Hsv<T: Channel> {
    pub h: Deg<T>,
    pub s: T,
    pub v: T,
}

Fields

Methods

impl<T: Channel> Hsv<T>
[src]

Trait Implementations

impl<T: Clone + FloatChannel> ToRgba for Hsv<T>
[src]

impl<T: Clone + Channel> Clone for Hsv<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Copy + Channel> Copy for Hsv<T>
[src]

impl<T: Debug + Channel> Debug for Hsv<T>
[src]

Formats the value using the given formatter. Read more

impl<T: Channel + NumCast> Color<T> for Hsv<T>
[src]

Clamps the components of the color to the range (lo,hi).

Clamps the components of the color component-wise between lo and hi.

Inverts the color.

impl<T: FloatChannel> FloatColor<T> for Hsv<T>
[src]

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: Clone + Channel> ToRgb for Hsv<T>
[src]

Auto Trait Implementations

impl<T> Send for Hsv<T> where
    T: Send

impl<T> Sync for Hsv<T> where
    T: Sync