Construct a 4-bit colour.
Construct an 8-bit colour.
Construct an RGB colour.
Construct an RGB colour.
Construct an RGB colour.
Allows direct assignment from any type that can also be used in any of this struct's ctors.
Creates an ANSI SGR command that either sets the foreground, or the background (isBg) to the colour stored inside of this AnsiColour.
[Not enabled in -betterC] Converts this AnsiColour into a GC-allocated sequence string.
The maximum amount of characters any singular AnsiColour sequence may use.
Assertions: This colour's type must be AnsiColourType.eightBit
Assertions: This colour's type must be AnsiColourType.fourBit
Assertions: This colour's type must be AnsiColourType.rgb
A variant of .init that is used for background colours.
Contains any type of ANSI colour and provides the ability to create a valid SGR command to set the foreground/background.
This struct overloads opAssign allowing easy assignment from Ansi4BitColour, Ansi8BitColour, AnsiRgbColour, and any user-defined type that satisfies isUserDefinedRgbType.