pub trait ColorMap {
type Color;
fn index_of(&self, color: &Self::Color) -> usize;
fn map_color(&self, color: &mut Self::Color);
}
Expand description
A color map
pub trait ColorMap {
type Color;
fn index_of(&self, color: &Self::Color) -> usize;
fn map_color(&self, color: &mut Self::Color);
}
A color map