#[repr(C)]pub struct Color {
pub r: f64,
pub g: f64,
pub b: f64,
pub a: f64,
}Expand description
RGBA color in linear-light 0..1 space. Mirrors wgpu::Color’s
shape so callers don’t have to depend on wgpu. Sugarloaf’s public
API takes/returns this type; the wgpu render path converts at the
boundary (see the wgpu feature’s From impls).
Fields§
§r: f64§g: f64§b: f64§a: f64Implementations§
Trait Implementations§
impl Copy for Color
impl StructuralPartialEq 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