Chart::Clicker::Drawing::Color
Chart::Clicker::Drawing::Color represents a Color in the sRGB color space. Used to make charts pertier.
The 16 colors defined by the W3C CSS specification are supported via the 'name' parameter of the constructor. The colors are aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white and yellow. Any case is fine, navy, NAVY or Navy.
use Chart::Clicker::Drawing::Color; my $color = new Chart::Clicker::Drawing::Color({ red => 1, blue => .31, green => .25, alpha => 1 }); my $aqua = new Chart::Clicker::Drawing::Color({ name => 'aqua' });
Creates a new Chart::Clicker::Drawing::Color.
Set/Get the red component of this Color.
Set/Get the green component of this Color.
Set/Get the blue component of this Color.
Set/Get the alpha component of this Color.
Get the name of this color. Only valid if the color was created by name.
Get a string version of this Color in the form of RED, GREEN, BLUE, ALPHA
Clone this color
Get the RGB values as an array
Get the RGBA values as an array
Gets the list of predefined color names.
Cory 'G' Watson <gphat@cpan.org>
perl(1)
You can redistribute and/or modify this code under the same terms as Perl itself.
To install Chart::Clicker, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Chart::Clicker
CPAN shell
perl -MCPAN -e shell install Chart::Clicker
For more information on module installation, please visit the detailed CPAN module installation guide.