Struct easy_imgui::Color
source · #[repr(C)]pub struct Color {
pub r: f32,
pub g: f32,
pub b: f32,
pub a: f32,
}
Expand description
A color is stored as a [r, g, b, a]
, each value between 0.0 and 1.0.
Fields§
§r: f32
§g: f32
§b: f32
§a: f32
Implementations§
source§impl Color
impl Color
pub const TRANSPARENT: Color = _
pub const WHITE: Color = _
pub const BLACK: 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 fn new(r: f32, g: f32, b: f32, a: f32) -> Color
Trait Implementations§
source§impl PartialEq for Color
impl PartialEq for Color
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§
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