Struct ColorRGBA
#[repr(C)]pub struct ColorRGBA {
pub data: [f32; 4],
}Expand description
Color with 4 floating point components: red, green, blue and alpha (r, g, b, a). \ingroup Math
Fields§
§data: [f32; 4]Color elements.
Implementations§
§impl ColorRGBA
impl ColorRGBA
pub const ZERO: ColorRGBA
pub const ONE: ColorRGBA
pub const MAX: ColorRGBA
pub const MIN: ColorRGBA
pub const NAN: ColorRGBA
pub const INFINITY: ColorRGBA
pub const NEG_INFINITY: ColorRGBA
pub const OPAQUE_BLACK: ColorRGBA
pub const TRANSPARENT_BLACK: ColorRGBA
pub const WHITE: ColorRGBA = Self::ONE
pub fn theme_red() -> ColorRGBA
pub fn theme_green() -> ColorRGBA
pub fn theme_blue() -> ColorRGBA
pub fn theme_yellow() -> ColorRGBA
pub fn theme_gray() -> ColorRGBA
pub fn theme_orange() -> ColorRGBA
pub const fn new(r: f32, g: f32, b: f32, a: f32) -> ColorRGBA
pub const fn new_rgb(r: f32, g: f32, b: f32) -> ColorRGBA
pub fn from_srgba(r: f32, g: f32, b: f32, a: f32) -> ColorRGBA
pub fn from_srgb(r: f32, g: f32, b: f32) -> ColorRGBA
pub const fn new_single(v: f32) -> ColorRGBA
Trait Implementations§
§impl VariantConstraint for ColorRGBA
impl VariantConstraint for ColorRGBA
impl Copy for ColorRGBA
impl PropertyTypeConstraint for ColorRGBA
impl StructuralPartialEq for ColorRGBA
Auto Trait Implementations§
impl Freeze for ColorRGBA
impl RefUnwindSafe for ColorRGBA
impl Send for ColorRGBA
impl Sync for ColorRGBA
impl Unpin for ColorRGBA
impl UnwindSafe for ColorRGBA
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