Class: WhirledPeas::Settings::TextColor

Inherits:
Color
  • Object
show all
Defined in:
lib/whirled_peas/settings/text_color.rb

Constant Summary collapse

BLACK =
new(Utils::Ansi::BLACK)
RED =
new(Utils::Ansi::RED)
GREEN =
new(Utils::Ansi::GREEN)
YELLOW =
new(Utils::Ansi::YELLOW)
BLUE =
new(Utils::Ansi::BLUE)
MAGENTA =
new(Utils::Ansi::MAGENTA)
CYAN =
new(Utils::Ansi::CYAN)
WHITE =
new(Utils::Ansi::WHITE)
GRAY =
BLACK.bright
DEFAULT =

Use system defined default

nil

Instance Method Summary collapse

Instance Method Details

#as_bg_colorObject



21
22
23
# File 'lib/whirled_peas/settings/text_color.rb', line 21

def as_bg_color
  BgColor.new(code + BgColor::BG_OFFSET, bright?)
end