Nice, but did you know about Color::Spectrum? extremely wrote the code, i just gave it a home. :)
If you look in the source, you will see there are methods for RGB-HSL(I) converstions that do the job with far fewer lines of code. I should update the POD to document those as well ... anyways, check it out. Might give some ideas for refactoring.
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
In reply to Re: Color Space Converter
by jeffa
in thread Color Space Converter
by js29a
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |