pub struct ColorHsvaGamma {
pub h: f32,
pub s: f32,
pub v: f32,
pub a: f32,
}Expand description
Like Hsva but with the v value (brightness) being gamma corrected
so that it is somewhat perceptually even.
Fields§
§h: f32hue 0-1
s: f32saturation 0-1
v: f32value 0-1, in gamma-space (~perceptually even)
a: f32alpha 0-1. A negative value signifies an additive color (and alpha is ignored).
Trait Implementations§
Source§impl Clone for ColorHsvaGamma
impl Clone for ColorHsvaGamma
Source§fn clone(&self) -> ColorHsvaGamma
fn clone(&self) -> ColorHsvaGamma
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ColorInterop for ColorHsvaGamma
impl ColorInterop for ColorHsvaGamma
Source§impl Debug for ColorHsvaGamma
impl Debug for ColorHsvaGamma
Source§impl Default for ColorHsvaGamma
impl Default for ColorHsvaGamma
Source§fn default() -> ColorHsvaGamma
fn default() -> ColorHsvaGamma
Returns the “default value” for a type. Read more
Source§impl From<Color32Bit> for ColorHsvaGamma
impl From<Color32Bit> for ColorHsvaGamma
Source§fn from(srgba: Color32Bit) -> Self
fn from(srgba: Color32Bit) -> Self
Converts to this type from the input type.
Source§impl From<ColorHsva> for ColorHsvaGamma
impl From<ColorHsva> for ColorHsvaGamma
Source§impl From<ColorHsvaGamma> for Alpha<Hsv<f32>>
impl From<ColorHsvaGamma> for Alpha<Hsv<f32>>
Source§fn from(col: ColorHsvaGamma) -> Self
fn from(col: ColorHsvaGamma) -> Self
Converts to this type from the input type.
Source§impl From<ColorHsvaGamma> for Color32Bit
impl From<ColorHsvaGamma> for Color32Bit
Source§fn from(hsvag: ColorHsvaGamma) -> Self
fn from(hsvag: ColorHsvaGamma) -> Self
Converts to this type from the input type.
Source§impl From<ColorHsvaGamma> for ColorHsva
impl From<ColorHsvaGamma> for ColorHsva
Source§fn from(hsvag: ColorHsvaGamma) -> Self
fn from(hsvag: ColorHsvaGamma) -> Self
Converts to this type from the input type.
Source§impl From<ColorHsvaGamma> for ColorLinear
impl From<ColorHsvaGamma> for ColorLinear
Source§fn from(hsvag: ColorHsvaGamma) -> Self
fn from(hsvag: ColorHsvaGamma) -> Self
Converts to this type from the input type.
Source§impl From<ColorLinear> for ColorHsvaGamma
impl From<ColorLinear> for ColorHsvaGamma
Source§fn from(rgba: ColorLinear) -> Self
fn from(rgba: ColorLinear) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ColorHsvaGamma
impl PartialEq for ColorHsvaGamma
impl Copy for ColorHsvaGamma
impl StructuralPartialEq for ColorHsvaGamma
Auto Trait Implementations§
impl Freeze for ColorHsvaGamma
impl RefUnwindSafe for ColorHsvaGamma
impl Send for ColorHsvaGamma
impl Sync for ColorHsvaGamma
impl Unpin for ColorHsvaGamma
impl UnwindSafe for ColorHsvaGamma
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more