struct

Ansi::BasicColor

Inherits Struct < Value < Object

BasicColor is an ANSI 3-bit or 4-bit color with a value from 0 to 15.

Constants

Black = BasicColor.new(0_u8)

Constants

Blue = BasicColor.new(4_u8)
BrightBlack = BasicColor.new(8_u8)
BrightBlue = BasicColor.new(12_u8)
BrightCyan = BasicColor.new(14_u8)
BrightGreen = BasicColor.new(10_u8)
BrightMagenta = BasicColor.new(13_u8)
BrightRed = BasicColor.new(9_u8)
BrightWhite = BasicColor.new(15_u8)
BrightYellow = BasicColor.new(11_u8)
Cyan = BasicColor.new(6_u8)
Green = BasicColor.new(2_u8)
Magenta = BasicColor.new(5_u8)
Red = BasicColor.new(1_u8)
White = BasicColor.new(7_u8)
Yellow = BasicColor.new(3_u8)

Constructors

new(value : UInt8)
Source

Instance methods

rgba
Source
value
Source