pub fn register_palette_color<S, COLOR>(name: S, color: COLOR)where
S: ToString,
COLOR: Into<RGBA>,
Expand description
Register a palette color by name with the global registry.
name
- the name of the color to register.
color
- a bracket-lib compatible color to associate with the name.
use bracket_color::prelude::*;
register_palette_color("red", RED);