Gradient

Trait Gradient 

Source
pub trait Gradient {
    type Input;

    // Required method
    fn color(&self, input: Self::Input, dark_mode: bool, inverse: bool) -> Color;
}
Expand description

Trait for providing coloring based on input values.

Required Associated Types§

Source

type Input

The type of input used for determining color.

Required Methods§

Source

fn color(&self, input: Self::Input, dark_mode: bool, inverse: bool) -> Color

Get the color corresponding to the given input, given the dark mode and inverse settings.

Implementors§