pub struct Color {
pub r: f64,
pub g: f64,
pub b: f64,
pub a: f64,
}Fields§
§r: f64§g: f64§b: f64§a: f64Implementations§
Source§impl Color
impl Color
pub const WHITE: Color
pub const BLACK: Color
pub const GREEN: Color
pub const TRANSPARENT: Color
pub const SLATE_900: Color
pub const SLATE_800: Color
pub const SLATE_700: Color
pub const SLATE_600: Color
pub const BLUE_500: Color
pub const BLUE_400: Color
pub const EMERALD_500: Color
pub const EMERALD_400: Color
pub const AMBER_500: Color
pub const ORANGE_500: Color
pub const RED_500: Color
pub const PURPLE_500: Color
pub const PINK_500: Color
pub fn rgba(r: f64, g: f64, b: f64, a: f64) -> Self
pub fn rgb(r: f64, g: f64, b: f64) -> Self
pub fn white() -> Self
pub fn black() -> Self
pub fn transparent() -> Self
pub fn to_renderer_color(self) -> Color
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