|
Color Jizz is a lightweight package for quickly converting colors to different formats, changing the properties of colors, matching colors and finding color harmonies. Contact me on twitter: @Mikeemoo Available in:Javascript Actionscript 3 PHP C#.NET Examplesvar green = new Hex(0x048F07);
var blue = new Hex(0x2491B5); green.equal(20, true)
green.equal(10, true)
green.equal(5, true)
green.split(true)
green.analogous(true)
green.rectangle(50, true)
green.range(blue, 10, true)
green.complement(true)
green.sweetspot(true)
green.greyscale()
green.websafe()
Classesnew RGB(r, g, b)
new Hex(0xFFFFFF);
new CMY(c, m, y);
new CMYK(c, m, y, k);
new HSV(h, s, v);
new CIELab(l, a, b);
new CIELCh(l, c, h);
new XYZ(x, y, z);
new Yxy(Y, x, y); MethodsHarmoniesequal(int parts, bool includeSelf)
split(bool includeSelf)
analogous(bool includeSelf)
rectangle(bool includeSelf)
range(color destinationColor, int steps, bool includeSelf)
complement(bool includeSelf);
sweetspot(bool includeSelf); Utilitiesdistance(color destinationColor)
match(array palette)
websafe();
greyscale()
hue(modifier);
saturation(modifier)
brightness(modifier) ConversiontoHex()
toRGB()
toCMY()
toCMYK()
toXYZ()
toYxy()
toCIELab()
toCIELCh()
toHSV()
|