[go: up one dir, main page]

coolor/
lib.rs

1/*!
2
3Definition of ANSI, RGB and HSL color types and all the conversions between them.
4
5There are many other color conversion crates.
6This one may be useful when you're interested into
7
8- variations of an ANSI color for your TUI application, for example fading, lightening, darkening, with compatibility with terminals that don't support RGB.
9- translations of color schemes
10- automatic downgrading of RGB color schemes for non RGB terminals
11- automated building of harmonious color schemes with guarantees of contrast
12- etc.
13
14Be warned that the ANSI range is limited and that not all intuitive operations will give good results.
15
16The included example shows luminosity and saturation variants of all 240 ANSI colors, with all variants still ANSI colors.
17
18*/
19
20#![no_std]
21
22mod ansi;
23mod color;
24mod error;
25mod hsl;
26mod rgb;
27
28pub use {
29	ansi::*,
30	color::*,
31	error::*,
32	hsl::*,
33	rgb::*,
34};