3 stable releases
| 1.2.0 | Jun 16, 2024 |
|---|---|
| 1.1.0 | Aug 9, 2023 |
| 1.0.0 | Jul 27, 2023 |
#1290 in Math
141 downloads per month
7KB
126 lines
A simple library for representing colours
Examples
use chrom::Colour;
// Make a new colour using a hex value
let white = Colour(0xffffff);
// Make a new colour using built-in constants
let blue = Colour::BLUE;
// Make a new colour using RGB values
let yellow = Colour::from_rgb(254, 231, 92);
Feature flags
serde - Enable serde features
Chrom
Chrom is a simple rust library for representing colours.
Dependencies
~160KB