pub trait Palette {
const COLORS: &'static [(u8, u8, u8)];
fn pick(idx: usize) -> PaletteColor<Self>
where
Self: Sized,
{ ... }
}
Expand description
Represents a color palette
Required Associated Constants
Provided Methods
fn pick(idx: usize) -> PaletteColor<Self> where
Self: Sized,
fn pick(idx: usize) -> PaletteColor<Self> where
Self: Sized,
Returns a color from the palette