Convert::ColorColor space conversions and named lookups | |
Download |
Convert::Color Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Paul Evans
- Publisher web site:
- http://search.cpan.org/~pevans/
Convert::Color Tags
Convert::Color Description
Color space conversions and named lookups Convert::Color is a Perl module that provides conversions between commonly used ways to express colors. It provides conversions between color spaces such as RGB and HSV, and it provides ways to look up colors by a name.This class provides a base for subclasses which represent particular color values in particular spaces. The base class provides methods to represent the color in a few convenient forms, though subclasses may provide more specific details for the space in question.SYNOPSIS use Convert::Color; my $color = Convert::Color->new( 'hsv:76,0.43,0.89' ); my ( $red, $green, $blue ) = $color->rgb; # GTK uses 16-bit values my $gtk_col = Gtk2::Gdk::Color->new( $color->as_rgb16->rgb16 ); # HTML uses #rrggbb in hex my $html = ''; Requirements: · Perl
Convert::Color Related Software