pub struct HsvaGamma {
pub h: f32,
pub s: f32,
pub v: f32,
pub a: f32,
}Available on crate feature
egui only.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§
impl Copy for HsvaGamma
impl StructuralPartialEq for HsvaGamma
Auto Trait Implementations§
impl Forget for HsvaGamma
impl Freeze for HsvaGamma
impl Move for HsvaGamma
impl RefUnwindSafe for HsvaGamma
impl Send for HsvaGamma
impl Sync for HsvaGamma
impl Unpin for HsvaGamma
impl UnsafeUnpin for HsvaGamma
impl UnwindSafe for HsvaGamma
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more