Convert::Color::VGA - named lookup for the basic VGA colors
use Convert::Color::VGA; my $red = Convert::Color::VGA->new( 'red' ); # Can also use index my $black = Convert::Color::VGA->new( 0 );
use Convert::Color; my $cyan = Convert::Color->new( 'vga:cyan' );
This subclass of Convert::Color::RGB provides predefined colors for the 8 basic VGA colors. Their names are
black red green yellow blue magenta cyan white
They may be looked up either by name, or by numerical index within this list.
Returns a new object to represent the named color.
Returns a new object to represent the color at the given index.
The index of the VGA color.
The name of the VGA color.
Paul Evans <email@example.com>