pub fn register_palette_color<S: ToString, COLOR: Into<RGBA>>(
    name: S,
    color: COLOR
)
Expand description

Register a palette color by name with the global registry.

§Arguments

  • name - the name of the color to register.
  • color - a bracket-lib compatible color to associate with the name.

§Example

use bracket_color::prelude::*;
register_palette_color("red", RED);