Generate a gradient image for use as a background image.
Requires gd module.
Input Parameters: height Height of output image (ignored for horizontal gradient) width Width of output image (ignored for vertical gradient) colors Number of colors to generate direction Direction gradient should go Currently limited to multiples of 90 degrees
So it is entirely equivalent to say "base=445566&percent=50" OR "color1=445566&color2=CCDDEE"
Since this file does not use any other WebCalendar file, it could be used by other PHP apps.
TODO: Allow directions which are not multiples of 90 degrees so that we can have diagonal gradients.
Security: No security restrictions by user. Limit height and width parameters to 600 so a malicious user cannot request a 10Gb image 8-)
Given an RGB value, return it's luminance adjusted by scale
scale range = 0 to 9
Documentation generated on Thu, 10 Jun 2010 17:08:28 -0400 by phpDocumentor 1.4.3