Color

Type Alias Color 

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

Source§

fn debug_view(&self) -> Option<Box<dyn View>>

Source§

fn interpolate(&self, other: &Self, value: f64) -> Option<Self>

Source§

fn combine(&self, _other: &Self) -> CombineResult<Self>