Convert::Color::X11 - named lookup of colors from X11's rgb.txt
Convert::Color::X11
Directly:
use Convert::Color::X11; my $red = Convert::Color::X11->new( 'red' );
Via Convert::Color:
use Convert::Color; my $cyan = Convert::Color->new( 'x11:cyan' );
This subclass of Convert::Color::RGB8 provides lookup of color names provided by X11's rgb.txt file.
Returns a list of the defined color names. This is a list of hash keys, so is returned in no particular order.
When called in scalar context, this method returns the count of the number of defined colors.
Returns a new object to represent the named color.
Convert::Color - color space conversions
Paul Evans <leonerd@leonerd.org.uk>
To install Convert::Color, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Convert::Color
CPAN shell
perl -MCPAN -e shell install Convert::Color
For more information on module installation, please visit the detailed CPAN module installation guide.