enum Color
source · line 7public enum Color
A terminal palette, indexed, RGB, or default-reset color. RGB components and palette indices are validated when serialized.
variant Cyan
source · line 76Cyan
The Cyan entry in the terminal's configurable base palette; its exact RGB appearance belongs to the terminal theme.
variant Magenta
source · line 66Magenta
The Magenta entry in the terminal's configurable base palette; its exact RGB appearance belongs to the terminal theme.
variant DarkMagenta
source · line 71DarkMagenta
The DarkMagenta entry in the terminal's configurable base palette; its exact RGB appearance belongs to the terminal theme.
variant Blue
source · line 56Blue
The Blue entry in the terminal's configurable base palette; its exact RGB appearance belongs to the terminal theme.
variant Green
source · line 36Green
The Green entry in the terminal's configurable base palette; its exact RGB appearance belongs to the terminal theme.
variant Yellow
source · line 46Yellow
The Yellow entry in the terminal's configurable base palette; its exact RGB appearance belongs to the terminal theme.
variant Red
source · line 26Red
The Red entry in the terminal's configurable base palette; its exact RGB appearance belongs to the terminal theme.
variant Reset
source · line 11Reset
The terminal's default color for the selected channel.
variant DarkBlue
source · line 61DarkBlue
The DarkBlue entry in the terminal's configurable base palette; its exact RGB appearance belongs to the terminal theme.
variant DarkCyan
source · line 81DarkCyan
The DarkCyan entry in the terminal's configurable base palette; its exact RGB appearance belongs to the terminal theme.
variant DarkRed
source · line 31DarkRed
The DarkRed entry in the terminal's configurable base palette; its exact RGB appearance belongs to the terminal theme.
variant DarkGrey
source · line 21DarkGrey
The DarkGrey entry in the terminal's configurable base palette; its exact RGB appearance belongs to the terminal theme.
variant White
source · line 86White
The White entry in the terminal's configurable base palette; its exact RGB appearance belongs to the terminal theme.
variant DarkYellow
source · line 51DarkYellow
The DarkYellow entry in the terminal's configurable base palette; its exact RGB appearance belongs to the terminal theme.
variant Grey
source · line 91Grey
The Grey entry in the terminal's configurable base palette; its exact RGB appearance belongs to the terminal theme.
variant Black
source · line 16Black
The Black entry in the terminal's configurable base palette; its exact RGB appearance belongs to the terminal theme.
variant AnsiValue
source · line 95AnsiValue(val value: Int)
An indexed ANSI palette color in 0..255.
field value
source · line 95val value: Int
parameter value
source · line 95val value: Int
variant Rgb
source · line 99Rgb(val red: Int, val green: Int, val blue: Int)
A true-color triple whose components must each be in 0..255.
field green
source · line 99val green: Int
parameter blue
source · line 99val blue: Int
parameter green
source · line 99val green: Int
field blue
source · line 99val blue: Int
parameter red
source · line 99val red: Int
field red
source · line 99val red: Int
variant DarkGreen
source · line 41DarkGreen
The DarkGreen entry in the terminal's configurable base palette; its exact RGB appearance belongs to the terminal theme.
function equals
source · line 7operator fun equals(other: Color): Boolean
This derived operation is available when each field or payload type supports same-type equality. Required types: Int.