Struct egui::color::Hsva [−][src]
Hue, saturation, value, alpha. All in the range [0, 1]. No premultiplied alpha.
Fields
h: f32hue 0-1
s: f32saturation 0-1
v: f32value 0-1
a: f32alpha 0-1. A negative value signifies an additive color (and alpha is ignored).
Implementations
impl Hsva[src]
impl Hsva[src]pub fn new(h: f32, s: f32, v: f32, a: f32) -> Hsva[src]
pub fn from_additive_rgb(rgb: [f32; 3]) -> Hsva[src]
pub fn from_rgb(rgb: [f32; 3]) -> Hsva[src]
pub fn from_srgb([u8; 3]) -> Hsva[src]
pub fn to_opaque(self) -> Hsva[src]
pub fn to_rgb(&self) -> [f32; 3][src]
pub fn to_srgb(&self) -> [u8; 3][src]
pub fn to_rgba_premultiplied(&self) -> [f32; 4][src]
pub fn to_rgba_unmultiplied(&self) -> [f32; 4][src]
pub fn to_rgba_unmultiplied(&self) -> [f32; 4][src]Represents additive colors using a negative alpha.
pub fn to_srgba_premultiplied(&self) -> [u8; 4][src]
pub fn to_srgba_unmultiplied(&self) -> [u8; 4][src]
Trait Implementations
impl Copy for Hsva[src]
impl StructuralPartialEq for Hsva[src]
Auto Trait Implementations
impl RefUnwindSafe for Hsva
impl Send for Hsva
impl Sync for Hsva
impl Unpin for Hsva
impl UnwindSafe for Hsva
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more