pub struct Palette99;
Expand description
The palette of 99% accessibility
Trait Implementations
sourceimpl Palette for Palette99
impl Palette for Palette99
sourceconst COLORS: &'static [(u8, u8, u8)] = &[(230, 25, 75), (60, 180, 75), (255, 225, 25), (0, 130, 200), (245, 130, 48),
(145, 30, 180), (70, 240, 240), (240, 50, 230), (210, 245, 60),
(250, 190, 190), (0, 128, 128), (230, 190, 255), (170, 110, 40),
(255, 250, 200), (128, 0, 0), (170, 255, 195), (128, 128, 0),
(255, 215, 180), (0, 0, 128), (128, 128, 128), (0, 0, 0)]
const COLORS: &'static [(u8, u8, u8)] = &[(230, 25, 75), (60, 180, 75), (255, 225, 25), (0, 130, 200), (245, 130, 48), (145, 30, 180), (70, 240, 240), (240, 50, 230), (210, 245, 60), (250, 190, 190), (0, 128, 128), (230, 190, 255), (170, 110, 40), (255, 250, 200), (128, 0, 0), (170, 255, 195), (128, 128, 0), (255, 215, 180), (0, 0, 128), (128, 128, 128), (0, 0, 0)]
Array of colors
sourcefn pick(idx: usize) -> PaletteColor<Self>
fn pick(idx: usize) -> PaletteColor<Self>
Returns a color from the palette
Auto Trait Implementations
impl RefUnwindSafe for Palette99
impl Send for Palette99
impl Sync for Palette99
impl Unpin for Palette99
impl UnwindSafe for Palette99
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more