Trait plotters::style::Palette

source ·
pub trait Palette {
    const COLORS: &'static [(u8, u8, u8)];

    // Provided method
    fn pick(idx: usize) -> PaletteColor<Self>
       where Self: Sized { ... }
}
Expand description

Definitions of palettes of accessibility Represents a color palette

Required Associated Constants§

source

const COLORS: &'static [(u8, u8, u8)]

Array of colors

Provided Methods§

source

fn pick(idx: usize) -> PaletteColor<Self>where Self: Sized,

Returns a color from the palette

Implementors§

source§

impl Palette for Palette99

source§

const COLORS: &'static [(u8, u8, u8)] = _

source§

impl Palette for Palette100

source§

const COLORS: &'static [(u8, u8, u8)] = _

source§

impl Palette for Palette9999

source§

const COLORS: &'static [(u8, u8, u8)] = _