Module bracket_lib::color
source · [−]Expand description
bracket-color provides a color system for use in the bracket-terminal
Structs
Implements an Alpha-Only Lerp as an iterator
Represents two colors together, a foreground and a background.
Frequently used to represent a glyph rendered on a console with
a solid background color.
Represents an H/S/V triplet, in the range 0..1 (32-bit float)
This can provide for a more natural color progression, and provides
compatibility with HSV-based color systems.
An HSV Lerp - transition from one HSV color to another in a set number of steps.
Represents an R/G/B triplet, in the range 0..1 (32-bit float)
Represents an R/G/B triplet, in the range 0..1 (32-bit float)
Implements an RGB Lerp as an iterator
Implements an RGBA Lerp as an iterator
Enums
Error message type when failing to convert a hex code to RGB.
Constants
Functions
Insert all named W3C colors into the palette
Empties the palette
Retrieve a palette color by name from the global registry.
Returns
Some(RGBA)
if the color is registered, None
if it is not.Register a palette color by name with the global registry.