Query: graphics::color
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Graphics::Color(3pm) User Contributed Perl Documentation Graphics::Color(3pm)NAMEGraphics::Color - Device and library agnostic color spaces.VERSIONversion 0.29SYNOPSISmy $color = Graphics::Color::RGB->new( red => .5, green => .5, blue => .5, alpha => .5 ); say $color->as_string;DESCRIPTIONGraphics color is a device and library agnostic system for creating and manipulating colors in various color spaces.DISCLAIMERI'm not an art student or a wizard of arcane color knowledge. I'm a normal programmer with a penchant for things graphical. Hence this module is likely incomplete in some places. Patches are encouraged. I've intentions of adding more color spaces as well as conversion routines (where applicable).COLOR TYPESThe following color types are supported. CMYK HSL HSV RGB YIQ YUVMETHODSderive Clone this color but allow one of more of it's attributes to change by passing in a hashref of options: my $new = $color->derive({ attr => $newvalue }); The returned color will be identical to the cloned one, save the attributes specified. equal_to Compares this color to the provided one. Returns 1 if true, else 0; not_equal_to The opposite of equal_to.AUTHORCory G Watson <gphat@cpan.org>COPYRIGHT AND LICENSEThis software is copyright (c) 2011 by Cold Hard Code, LLC. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.12.4 2011-08-11 Graphics::Color(3pm)
Similar Topics in the Unix Linux Community |
---|
Color and Users |
C programming sessions |
File operations in C pgm |
Color text on shell programming |
Color a Badge Based on the Weeks the Member is Active in the Latest Sequence |