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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)