enum TermBuf::Color::Kind

Overview

Which of the three things a colour can be.

Defined in:

termbuf/core/color.cr

Enum Members

Default = 0_u8

The terminal's own default, which the application does not control.

Indexed = 1_u8

An index into the 256 colour palette.

Rgb = 2_u8

A 24 bit colour.

Instance Method Summary

Instance Method Detail

def default? #

Returns true if this enum value equals Default


[View source]
def indexed? #

Returns true if this enum value equals Indexed


[View source]
def rgb? #

Returns true if this enum value equals Rgb


[View source]