# --- I don't pay much attention to this project anymore. If anyone wants ownership - get in contact. --- # Getting started: ColorJizz-PHP uses the PSR-0 standards for namespaces, so there should be no trouble using with frameworks like Symfony 2. ### Autoloading An autoloader class is provided for when loading ColorJizz yourself. First, include the autoloader and call the static register() function. ```php ``` Now all ColorJizz classes will be automatically loaded in. ### Converting between formats ColorJizz can convert to and from any of the supported color formats: ```php toCMYK(); echo get_class($red_cmyk); // MischiefCollective\ColorJizz\Formats\CMYK echo $red_cmyk; // 0,1,1,0 ?> ``` Any color manipulation or conversion will return a new instance of a color class, therefore your original color objects remains intact. Color manipulation can be chained together: ```php hue(-20)->greyscale(); // 555555 ?> ``` Any color manipulation will always return the color in the same format unless you're specifically converting the format. For example: ```php hue(-20)->saturation(2)); // MischiefCollective\ColorJizz\Formats\RGB ?> ``` ### Supported formats: ```php toRGB(); ->toCMY(); ->toCMYK(); ->toHex(); ->toHSV(); ->toCIELab(); ->toCIELCh(); ->toXYZ(); ->toYxy(); ```