My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Featured
Downloads

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

Examples

var 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()

Classes

new 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);

Methods

Harmonies

equal(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);

Utilities

distance(color destinationColor)
match(array palette)
websafe();
greyscale()
hue(modifier);
saturation(modifier)
brightness(modifier)

Conversion

toHex()
toRGB()
toCMY()
toCMYK()
toXYZ()
toYxy()
toCIELab()
toCIELCh()
toHSV()
Powered by Google Project Hosting