Wednesday, 28 March 2012

Javascript color conversion

Welcome to Technolog








This Javascript library, will help you to convert colors between different color systems.

It supports RGB, HSV, CMYK color encoding systems.
First you need to create color object you want to convert from.

As mentioned above there are 3 types:
var obj = new RGB(10 /* red */, 20 /* green */, 30 /* blue */);
var obj = new HSV(10 /* hue */, 20 /* saturation */, 30 /* value */);
var obj = new CMYK(10 /* cyan */, 20 /* magenta */, 30 /* yellow */, 40 

No comments:

Post a Comment