[go: up one dir, main page]

Crate coolor[][src]

Expand description

Definition of ANSI, RGB and HSL color types and all the conversions between them.

There are many other color conversion crates. This one is useful when you’re interested into variations of an ANSI color for your TUI application, for example fading, lightening, darkening, with compatibility with terminals which don’t support RGB.

The included example shows darkened and lightened variants of all 240 ANSI colors, with all variants still ANSI colors.

Structs

8-bit Ansi Color Code

HSL color

RGB color, with u8 components

Enums

coolor error type