[go: up one dir, main page]

Crate ansi_colours[][src]

Traits

AsRGB

A trait for types which (can) represent an sRGB colour. Used to provide overloaded versions of ansi256_from_rgb function.

Functions

ansi256_from_rgb

Returns index of a colour in 256-colour ANSI palette approximating given sRGB colour.

rgb_from_ansi256

Returns sRGB colour corresponding to the index in the 256-colour ANSI palette.