##General usage This script outputs a random color pallette or gradient (that decision is also seemingly random) containing random set of colors with a maximum value enforced. You have no choice on these colors this way (see below for manual generation techniques).
Example: http://jhawins.tk/colors.php?ipsum
######Note: optionally set the width and height of the generated image using w
and h
(GET).
i.e. http://jhawins.tk/colors.php?ipsum&w=400&h=100
##Other usage
This script generates a color swatch|gradient swatch in gif
format.
A variety of inputs types are supported including
RGB,
Hexadecimal,
Shorthand hexadecimal,
many color names,
multi-color names (i.e. "rgb" is the same as input "red,blue,green")
Due to the way multi-part arrays are parsed (explained on colors.php line 162-166 ) it's possible to chain multi-part colors together as well. So try colors.php?gradient=incept which returns the 3 existing multi-part arrays.
##Usage Examples http://jhawins.tk/colors.php?ipsum&w=400&h=100
http://jhawins.tk/colors.php?gradient=roygbiv,purple
http://jhawins.tk/colors.php?color=red,ffe680,fff,rgb,canada