struct CryTUI::Color

Defined in:

crytui/style.cr

Constant Summary

BLACK = indexed(0)
BLUE = indexed(4)
CYAN = indexed(6)
DARK_GRAY = indexed(8)
GRAY = indexed(7)
GREEN = indexed(2)
MAGENTA = indexed(5)
RED = indexed(1)
RESET = new(ColorKind::Reset)
WHITE = indexed(15)
YELLOW = indexed(3)

Constructors

Instance Method Summary

Constructor Detail

def self.indexed(index : Int) : Color #

[View source]
def self.rgb(red : Int, green : Int, blue : Int) : Color #

[View source]

Instance Method Detail

def blue : UInt8 #

[View source]
def green : UInt8 #

[View source]
def index : UInt8 #

[View source]
def kind : ColorKind #

[View source]
def red : UInt8 #

[View source]