pub struct Color {
pub red: u8,
pub green: u8,
pub blue: u8,
pub alpha: u8,
}Expand description
Brief description
The Color struct is not documented yet. Pull requests are welcome.
Fields§
§red: u8§green: u8§blue: u8§alpha: u8Implementations§
Source§impl Color
impl Color
pub const BLACK: Color
pub const WHITE: Color
pub const RED: Color
pub const GREEN: Color
pub const BLUE: Color
pub const YELLOW: Color
pub const MAGENTA: Color
pub const CYAN: Color
pub const TRANSPARENT: Color
pub fn new() -> Color
pub fn rgb(red: u8, green: u8, blue: u8) -> Color
pub fn rgba(red: u8, green: u8, blue: u8, alpha: u8) -> Color
pub fn argb(alpha: u8, red: u8, green: u8, blue: u8) -> Color
Trait Implementations§
Source§impl AddAssign for Color
impl AddAssign for Color
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+= operation. Read moreimpl Copy for Color
impl Eq 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 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