NAME
Term::VTerm::Color
- represent an onscreen color for Term::VTerm
CONSTRUCTOR
new
$color = Term::VTerm::Color->new( red => $r, green => $g, blue => $b )
Returns a new Term::VTerm::Color
instance.
ACCESSORS
is_indexed
$bool = $color->is_indexed
True if the colour is a palette index.
is_rgb
$bool = $color->is_rgb
True if the colour contains RGB values directly.
index
$idx = $color->index
The palette index for indexed colours.
red
green
blue
$r = $color->red
$g = $color->green
$b = $color->blue
The components of the colour as an integer between 0 and 255 for RGB colours.
rgb_hex
$hex = $color->rgb_hex
A 6-character string containing the three colour components, hex encoded.
is_default_fg
is_default_bg
$bool = $color->is_default_fg
$bool = $color->is_default_bg
True if the colour is the default colour for terminal foreground or background.
AUTHOR
Paul Evans <leonerd@leonerd.org.uk>