| 1 |
Graphics/ColorObject version 0.5.0 |
| 2 |
============================ |
| 3 |
|
| 4 |
QUICK START |
| 5 |
|
| 6 |
Convert from one color space to another, from example from RGB |
| 7 |
to HSV (Hue-Saturation-Value): |
| 8 |
|
| 9 |
use Graphics::ColorObject; |
| 10 |
($h, $s, $v) = @{ Graphics::ColorObject->new_RGB([$r, $g, $b])->as_HSV() }; |
| 11 |
|
| 12 |
You can convert between any of these color spaces: XYZ, xyY, Lab, |
| 13 |
LCHab, RGB, HSL, HSV, CMY, CMYK, YPbPr, YCbCr, YUV, YIQ, PhotoYCC. |
| 14 |
|
| 15 |
For more detailed info, type: |
| 16 |
|
| 17 |
perldoc ColorObject.pm |
| 18 |
|
| 19 |
|
| 20 |
INSTALLATION |
| 21 |
|
| 22 |
To install this module type the following: |
| 23 |
|
| 24 |
perl Makefile.PL |
| 25 |
make |
| 26 |
make test |
| 27 |
make install |
| 28 |
|
| 29 |
|
| 30 |
DEPENDENCIES |
| 31 |
|
| 32 |
Graphics::ColorNames |
| 33 |
|
| 34 |
|
| 35 |
COPYRIGHT AND LICENCE |
| 36 |
|
| 37 |
Copyright 2003-2005 by Alex Izvorski |
| 38 |
(Portions Copyright 2001-2003 by Alfred Reibenschuh) |
| 39 |
|
| 40 |
This library is free software; you can redistribute it and/or modify |
| 41 |
it under the same terms as Perl itself. |
| 42 |
|