strange_attractor_renderer::config

Struct Palette

source
pub struct Palette { /* private fields */ }

Implementations§

source§

impl Palette

source

pub fn new(list: Vec<Rgb<f64>>) -> Self

§Panics

Panics if list.is_empty().

source

pub fn from_rgb<const LEN: usize>( r: [f64; LEN], g: [f64; LEN], b: [f64; LEN], ) -> Self

source

pub fn count(&self) -> usize

Number of colours in this palette.

source

pub fn