Struct ecolor::hsva_gamma::HsvaGamma
source · pub struct HsvaGamma {
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: 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 Copy for HsvaGamma
impl StructuralPartialEq for HsvaGamma
Auto Trait Implementations§
impl Freeze for HsvaGamma
impl RefUnwindSafe for HsvaGamma
impl Send for HsvaGamma
impl Sync for HsvaGamma
impl Unpin 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)