Fields
r: f32
g: f32
b: f32
a: f32
Implementations
sourceimpl Color
impl Color
pub fn gray(lightness: f32) -> Color
pub fn new(r: f32, g: f32, b: f32, a: f32) -> Self
pub fn mix(&self, rhs: Color, s: f32) -> Color
pub fn alpha(&self, a: f32) -> Self
pub const CYAN: Color = _
pub const MAGENTA: Color = _
pub const WHITE: Color = _
pub fn hex(hex: &str) -> Result<Color, String>
pub const fn hex_const(hex: &str) -> Color
Trait Implementations
impl Copy for Color
impl StructuralPartialEq for Color
Auto Trait Implementations
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin for Color
impl UnwindSafe for Color
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more