pub enum Color {
Oklch {
l: f64,
c: f64,
h: f64,
alpha: f64,
},
Srgb {
r: f64,
g: f64,
b: f64,
alpha: f64,
},
DisplayP3 {
r: f64,
g: f64,
b: f64,
alpha: f64,
},
}Variants§
Implementations§
Source§impl Color
impl Color
pub const fn oklch(l: f64, c: f64, h: f64) -> Self
pub const fn oklch_alpha(l: f64, c: f64, h: f64, alpha: f64) -> Self
pub const fn srgb(r: f64, g: f64, b: f64) -> Self
pub const fn srgb_alpha(r: f64, g: f64, b: f64, alpha: f64) -> Self
pub const fn display_p3(r: f64, g: f64, b: f64) -> Self
pub const fn display_p3_alpha(r: f64, g: f64, b: f64, alpha: f64) -> Self
pub const fn white() -> Self
pub const fn black() -> Self
Trait Implementations§
impl Copy for Color
impl StructuralPartialEq for Color
Auto Trait Implementations§
impl Freeze for Color
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin for Color
impl UnsafeUnpin for Color
impl UnwindSafe for Color
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