Struct egui::color::HsvaGamma[][src]

pub struct HsvaGamma {
    pub h: f32,
    pub s: f32,
    pub v: f32,
    pub a: f32,
}

Like Hsva but with the v value (brightness) being gamma corrected so that it is somewhat perceptually even.

Fields

h: f32

hue 0-1

s: f32

saturation 0-1

v: f32

value 0-1, in gamma-space (~perceptually even)

a: f32

alpha 0-1. A negative value signifies an additive color (and alpha is ignored).

Trait Implementations

impl Clone for HsvaGamma[src]

impl Copy for HsvaGamma[src]

impl Debug for HsvaGamma[src]

impl Default for HsvaGamma[src]

impl From<Color32> for HsvaGamma[src]

impl From<Hsva> for HsvaGamma[src]

impl From<HsvaGamma> for Hsva[src]

impl From<HsvaGamma> for Rgba[src]

impl From<HsvaGamma> for Color32[src]

impl From<Rgba> for HsvaGamma[src]

impl PartialEq<HsvaGamma> for HsvaGamma[src]

impl StructuralPartialEq for HsvaGamma[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.