Color::Scheme

statico on 2005-11-18T01:59:54

Color::Scheme has been released to the CPAN. It's a Perl implementation of the blisteringly-useful Color Scheme Generator 2, which generates fantastic sets of color harmony that are usually ready for immediate web use.


Interesting

n1vux on 2005-11-21T22:04:40

Thank you for pointing out the website as well as coding up the equivalent in Perl.

Q. Does it *always* generate color-blind safe combinations? The original website's ability to view with each colorblindness is wonderful.

I'm intrigued by the comment that CSG2 and C:S use a non-standard but more accurate HSV model. Did you see a reference to studies on that? It looks like a *simpler* RGBHSV conversion, but I don't know about " more in accordance with the classical color theory". Standard color theories are CMYK and RGB and HSV. Using RGB coordinates as if they were RYB seems very cavalier. An accurate RGB input routine would that converted RGBs without assuming RGB=RYB would probably make it more useful.

Typo - This Per; module was created

The original JavaScript is licensed CC2 by-nc-sa. Your Copyright says "granted explicitly by the author" -- you got a waiver to recode this under the Perl license? That's very nice of him, since by-nc-sa is pretty restrictive (not Debian-free).

Re:Interesting

statico on 2005-11-25T05:02:07

Thank you for pointing out the website as well as coding up the equivalent in Perl.

Sure thing!

Q. Does it *always* generate color-blind safe combinations? The original website's ability to view with each colorblindness is wonderful.

Negative. I haven't implemented the color-blindness variants because I didn't think that the feature would be as useful to those using the Perl module. If you want it, I'll add it :)

I'm intrigued by the comment that CSG2 and C:S use a non-standard but more accurate HSV model. Did you see a reference to studies on that? It looks like a *simpler* RGBHSV conversion, but I don't know about " more in accordance with the classical color theory". Standard color theories are CMYK and RGB and HSV. Using RGB coordinates as if they were RYB seems very cavalier. An accurate RGB input routine would that converted RGBs without assuming RGB=RYB would probably make it more useful.

Deliberation and investigation of the algorithm wasn't the purpose of creating the Perl port. I was looking simply for an alternative to copying and pasting generated colors from the web site.

Typo - This Per; module was created

Roger, thanks!

The original JavaScript is licensed CC2 by-nc-sa. Your Copyright says "granted explicitly by the author" -- you got a waiver to recode this under the Perl license? That's very nice of him, since by-nc-sa is pretty restrictive (not Debian-free).

Agreed.