Expand description

Colors for attributes

Structs

A pixel value encoded as linear RGBA values in f32 format (range: 0.0-1.0)

Describes a color in the SRGB colorspace using red, green and blue components in the range 0-255.

A pixel value encoded as SRGBA RGBA values in f32 format (range: 0.0-1.0)

Enums

These correspond to the classic ANSI color indices and are used for convenience/readability in code

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.

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 Definitions

An index into the fixed color palette.