Module color

Source
Expand description

Colors for attributes

Structs§

LinearRgba
A pixel value encoded as linear RGBA values in f32 format (range: 0.0-1.0)
RgbColor
Describes a color in the SRGB colorspace using red, green and blue components in the range 0-255.
SrgbaTuple
A pixel value encoded as SRGBA RGBA values in f32 format (range: 0.0-1.0)

Enums§

AnsiColor
These correspond to the classic ANSI color indices and are used for convenience/readability in code
ColorAttribute
Specifies the color to be used when rendering a cell. This is the type used in the CellAttributes struct and can specify an optional TrueColor value, allowing a fallback to a more traditional palette index if TrueColor is not available.
ColorSpec
Specifies the color to be used when rendering a cell. This differs from ColorAttribute in that this type can only specify one of the possible color types at once, whereas the ColorAttribute type can specify a TrueColor value and a fallback.

Type Aliases§

PaletteIndex
An index into the fixed color palette.