Struct freya_engine::prelude::Color
source · pub struct Color(_);
Implementations§
source§impl Color
impl Color
pub const TRANSPARENT: Self = _
pub const BLACK: Self = _
pub const DARK_GRAY: Self = _
pub const GRAY: Self = _
pub const LIGHT_GRAY: Self = _
pub const WHITE: Self = _
pub const RED: Self = _
pub const GREEN: Self = _
pub const BLUE: Self = _
pub const YELLOW: Self = _
pub const CYAN: Self = _
pub const MAGENTA: Self = _
pub fn new(_argb: u32) -> Self
pub fn from_argb(_a: u8, _r: u8, _g: u8, _b: u8) -> Color
pub fn from_rgb(_r: u8, _g: u8, _b: u8) -> Color
pub fn a(self) -> u8
pub fn r(self) -> u8
pub fn g(self) -> u8
pub fn b(self) -> u8
pub fn with_a(self, _a: u8) -> Self
pub fn to_rgb(self) -> RGB
pub fn to_hsv(self) -> HSV
Trait Implementations§
source§impl PartialEq<Color> for Color
impl PartialEq<Color> for Color
impl Copy for Color
impl Eq for Color
impl StructuralEq 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§
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