pub struct Color {
pub r: f32,
pub g: f32,
pub b: f32,
pub a: f32,
}Expand description
Color as RGBA (0.0–1.0).
Fields§
§r: f32§g: f32§b: f32§a: f32Implementations§
Trait Implementations§
Source§impl ColorExt for Color
impl ColorExt for Color
fn to_skia(&self) -> Color
fn to_premultiplied(&self) -> PremultipliedColorU8
impl Copy for Color
Auto Trait Implementations§
impl Freeze for Color
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin for Color
impl UnsafeUnpin 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