pub trait Gradient { type Input; // Required method fn color(&self, input: Self::Input, dark_mode: bool, inverse: bool) -> Color; }
Trait for providing coloring based on input values.
The type of input used for determining color.
Get the color corresponding to the given input, given the dark mode and inverse settings.