[][src]Module termwiz::color

Colors for attributes

Structs

RgbColor

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

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 Definitions

PaletteIndex

An index into the fixed color palette.

RgbaTuple