palette::rgb

Type Alias PackedRgba

source
pub type PackedRgba<P = u32> = Packed<Rgba, P>;
Expand description

A packed representation of RGBA in RGBA order.

Aliased Type§

struct PackedRgba<P = u32> {
    pub color: P,
    pub channel_order: PhantomData<Rgba>,
}

Fields§

§color: P

The color packed into a type P, such as u32 or [u8; 4].

§channel_order: PhantomData<Rgba>

The channel order for the color components in the packed data. See ComponentOrder.