nsys-color-utils 0.2.2

Color utilities
Documentation
//! Color constants

use crate::{RGB8, RGBA8};

//
// monochrome
//
pub const BLACK             : RGB8 = RGB8::new (  0,   0,   0);
pub const GREY              : RGB8 = RGB8::new (127, 127, 127);
pub const WHITE             : RGB8 = RGB8::new (255, 255, 255);

//
// hues
//
// primary
pub const RED               : RGB8 = RGB8::new (255,   0,   0);
pub const GREEN             : RGB8 = RGB8::new (  0, 255,   0);
pub const BLUE              : RGB8 = RGB8::new (  0,   0, 255);
// secondary
pub const CYAN              : RGB8 = RGB8::new (  0, 255, 255);
pub const MAGENTA           : RGB8 = RGB8::new (255,   0, 255);
pub const YELLOW            : RGB8 = RGB8::new (255, 255,   0);
// tertiary
pub const ORANGE            : RGB8 = RGB8::new (255, 127,   0);
pub const ROSE              : RGB8 = RGB8::new (255,   0, 127);
pub const CHARTREUSE        : RGB8 = RGB8::new (127, 255,   0);
pub const VIRIDIAN          : RGB8 = RGB8::new (  0, 255, 127);
pub const VIOLET            : RGB8 = RGB8::new (127,   0, 255);
pub const AZURE             : RGB8 = RGB8::new (  0, 127, 255);

//
// dark
//
// primary
pub const MAROON            : RGB8 = RGB8::new (127,   0,   0);
pub const GRASS             : RGB8 = RGB8::new (  0, 127,   0);
pub const NAVY              : RGB8 = RGB8::new (  0,   0, 127);
// secondary
pub const TEAL              : RGB8 = RGB8::new (  0, 127, 127);
pub const PURPLE            : RGB8 = RGB8::new (127,   0, 127);
pub const OLIVE             : RGB8 = RGB8::new (127, 127,   0);
// tertiary
pub const BROWN             : RGB8 = RGB8::new (127,  63,   0);
pub const TYRIAN            : RGB8 = RGB8::new (127,   0,  63);
pub const NAPIER            : RGB8 = RGB8::new ( 63, 127,   0);
pub const SHAMROCK          : RGB8 = RGB8::new (  0, 127,  63);
pub const INDIGO            : RGB8 = RGB8::new ( 63,   0, 127);
pub const CERULEAN          : RGB8 = RGB8::new (  0,  63, 127);

//
// light
//
pub const PINK              : RGB8 = RGB8::new (255, 127, 127);

//
// misc
//
pub const TAN               : RGB8 = RGB8::new (255, 191, 127);
pub const BEIGE             : RGB8 = RGB8::new (255, 255, 191);
// source: <https://en.wikipedia.org/wiki/Blood_red>
pub const BLOOD_RED         : RGB8 = RGB8::new (175,  17,  28);
pub const EIGENGRAU         : RGB8 = RGB8::new (22,   22,  29);
pub const NOON_SUN          : RGB8 = RGB8::new (255, 255, 251);
pub const SKY_BLUE          : RGB8 = RGB8::new (135, 206, 235);
// debug colors
pub const DEBUG_RED         : RGB8 = RGB8::new (255,   7,  15);
pub const DEBUG_GREEN       : RGB8 = RGB8::new (  0, 255,  31);
pub const DEBUG_BLUE        : RGB8 = RGB8::new ( 31,  63, 255);
pub const DEBUG_PINK        : RGB8 = RGB8::new (255, 127, 127);
pub const DEBUG_VIOLET      : RGB8 = RGB8::new ( 63,   0, 255);
pub const DEBUG_YELLOW      : RGB8 = RGB8::new (255, 255,  63);
pub const DEBUG_GOLD        : RGB8 = RGB8::new (255, 191,   0);
pub const DEBUG_LIGHT_GREEN : RGB8 = RGB8::new (228, 255, 201);
pub const DEBUG_LIGHT_BLUE  : RGB8 = RGB8::new (127, 191, 255);
pub const DEBUG_CHARTREUSE  : RGB8 = RGB8::new (127, 255,   0);
pub const DEBUG_AZURE       : RGB8 = RGB8::new (  0, 127, 255);
pub const DEBUG_GREY        : RGB8 = RGB8::new (129, 126, 126);
// rgba
pub const TRANSPARENT       : RGBA8 = RGBA8::new (0, 0, 0, 0);