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.

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);