Trait ColorMap

Source
pub trait ColorMap<const N: usize> {
    // Required method
    fn get_color(&self, color: ColorND<N>) -> impl Color;
}
Expand description

Defines a color map which can convert a N-dimensional color into a normal color

Required Methods§

Source

fn get_color(&self, color: ColorND<N>) -> impl Color

Retrieves the normal color from the N-dimensional color

§Parameters

color: The N-dimensional color to convert

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§