Expand description
A minimal color handling library.
Parsing and serialization are optionally supported.
All color constructors support const
evaluation.
§Basic Usage
use simple_color::Color;
// Predefined colors
let white = Color::WHITE;
let red = Color::RED;
// Custom colors
let yellow = Color::rgb(0xFF, 0xFF, 0);
let transparent_blue = Color::rgba(0, 0, 0xFF, 0x80);
Structs§
- Color
- RGBA color representation with 8-bit components
Enums§
- Color
Parsing Error - Error type for color parsing failures