Crate chrom

Source
Expand description

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

Structs§

Colour
A representation of a colour

Type Aliases§

Color