Graphics::ColorUtilsGraphics::ColorUtils Perl module is an easy-to-use color space conversions and more. | |
Download |
Graphics::ColorUtils Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Philipp K. Janert
- Publisher web site:
- http://search.cpan.org/~janert/Graphics-ColorUtils-0.17/lib/Graphics/ColorUtils.pm
Graphics::ColorUtils Tags
Graphics::ColorUtils Description
Graphics::ColorUtils Perl module is an easy-to-use color space conversions and more. Graphics::ColorUtils Perl module is an easy-to-use color space conversions and more.SYNOPSIS use Graphics::ColorUtils; ( $y, $i, $q ) = rgb2yiq( $r, $g, $b ); ( $r, $g, $b ) = yiq2rgb( $y, $i, $q ); $hex_string = yiq2rgb( $y, $i, $q ); ( $c, $m, $y ) = rgb2cmy( $r, $g, $b ); ( $r, $g, $b ) = cmy2rgb( $c, $m, $y ); $hex_string = cmy2rgb( $c, $m, $y ); ( $h, $l, $s ) = rgb2hls( $r, $g, $b ); ( $r, $g, $b ) = hls2rgb( $h, $l, $s ); $hex_string = hls2rgb( $h, $l, $s ); ( $h, $s, $v ) = rgb2hsv( $r, $g, $b ); ( $r, $g, $b ) = hsv2rgb( $h, $s, $v ); $hex_string = hsv2rgb( $h, $s, $v ); # ----- use Graphics::ColorUtils qw( :gradients ); ( $r, $g, $b ) = grad2rgb( $name, $f ); # where 0.0 colorAllocate( hsv2rgb( 270, 0.5, 0.3 ) );.)Features:Color Space ConversionsColor space conversions, in particular between the "intuitive" color spaces HSV (Hue/Saturation/Value) and HLS (Hue/Lightness/Saturation) to and from RGB (Red/Green/Blue).Color LookupColor lookup by name for three standard sets of colors: WWW/CSS, SVG, and X11.Color GradientsManagement of color gradients, which can be indexed by a floating point number in the range 0..1. (Mostly intended for false-color data visualization.) Requirements: · Perl
Graphics::ColorUtils Related Software