Termbox::Color
Inherits Termbox::IColor / Struct / Value / Object
Translates any RGB color between terminal ouput modes
(see OutputMode).
Constants
Black = Color.new(*M8_COLORS[0])
Default = DefaultColor.new
Green = Color.new(*M8_COLORS[2])
Maroon = Color.new(*M8_COLORS[1])
Navy = Color.new(*M8_COLORS[4])
Olive = Color.new(*M8_COLORS[3])
Purple = Color.new(*M8_COLORS[5])
Silver = Color.new(*M8_COLORS[7])
Teal = Color.new(*M8_COLORS[6])
White = Color.new(255, 255, 255)
Constructors
Class methods
Instance methods
|(also also_ : Color::Also)
Mixes also, an output-mode-independent attribute, into this color.
also
Returns this color's attribute.
b
clone
Sourcecopy_with(r _r = @r, g _g = @g, b _b = @b, also _also = @also)
Sourceg
r