pub struct Rgba {
pub r: u8,
pub g: u8,
pub b: u8,
pub a: f32,
}
Fields§
§r: u8
§g: u8
§b: u8
§a: f32
Trait Implementations§
Source§impl ColorspaceImpl for Rgba
impl ColorspaceImpl for Rgba
fn to_rgba(&self) -> Rgba
fn to_normalized_rgba(&self) -> NormalizedRgba
fn to_rgba16(&self) -> Rgba16
fn to_normalized_hsla(&self) -> NormalizedHsla
fn to_hsla(&self) -> Hsla
fn darken(&self, percentage: f32) -> Self
fn lighten(&self, percentage: f32) -> Self
Source§impl PartialOrd for Rgba
impl PartialOrd for Rgba
impl Copy for Rgba
impl StructuralPartialEq for Rgba
Auto Trait Implementations§
impl Freeze for Rgba
impl RefUnwindSafe for Rgba
impl Send for Rgba
impl Sync for Rgba
impl Unpin for Rgba
impl UnwindSafe for Rgba
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