pub type Color = AlphaColor<Srgb>;Expand description
A convenient alias for the color type used for Brush.
Aliased Type§
#[repr(transparent)]pub struct Color {
pub components: [f32; 4],
pub cs: PhantomData<Srgb>,
}Fields§
§components: [f32; 4]The components, which may be manipulated directly.
The interpretation of the first three components depends on the color space. The fourth component is separate alpha.
cs: PhantomData<Srgb>The color space.
Trait Implementations§
Source§impl StylePropValue for Color
impl StylePropValue for Color
fn debug_view(&self) -> Option<Box<dyn View>>
fn interpolate(&self, other: &Self, value: f64) -> Option<Self>
fn combine(&self, _other: &Self) -> CombineResult<Self>
Source§fn content_hash(&self) -> u64
fn content_hash(&self) -> u64
Compute a content-based hash for this value. Read more