Struct primitives::foundation::colorspace::RgbaColor
source · [−]Expand description
Rgba color representation with u8 components
Fields
red: u8
Red component
green: u8
Green component
blue: u8
Blue component
alpha: u8
Alpha component
Implementations
Trait Implementations
sourceimpl GetAlpha<RgbColor> for RgbaColor
impl GetAlpha<RgbColor> for RgbaColor
sourcefn get_opacity(&self) -> f32
fn get_opacity(&self) -> f32
Retrieve the alpha component as opacity
sourcefn get_transparency(&self) -> f32
fn get_transparency(&self) -> f32
Retrieve the alpha component as transparency
impl ColorSpace for RgbaColor
impl ColorTransition for RgbaColor
impl Copy for RgbaColor
impl Eq for RgbaColor
impl NonRadialSpace for RgbaColor
impl NonSaturationSpace for RgbaColor
impl StructuralEq for RgbaColor
impl StructuralPartialEq for RgbaColor
Auto Trait Implementations
impl RefUnwindSafe for RgbaColor
impl Send for RgbaColor
impl Sync for RgbaColor
impl Unpin for RgbaColor
impl UnwindSafe for RgbaColor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more