zColor 0.1
I’ve been messing around with some old JavaScript code I found recently. The basic idea was to create a way to convert colors from RGB to HSL and back again in order to create color effects like gradients using JavaScript. HSL is better suited to many color manipulations, but it’s not supported by CSS. So, I started dabbling around with color conversion algorithms until I got it close enough to the results of graphic programs. I cleaned up the code a bit and threw in some more functionality. The result, zColor, is now available on the Downloads page. I haven’t had the time to type up documentation, but the code comments and example are pretty self-explanatory. I’ve labeled this version 0.1, since it’s definitely a work in progress, but feel free to play around with it and use it if you find it useful.
Disclaimer: Any viewpoints and opinions expressed in this article are those of Nicholas C. Zakas and do not, in any way, reflect those of my employer, my colleagues, Wrox Publishing, O'Reilly Publishing, or anyone else. I speak only for myself, not for them.