At 2003-08-15 08:14 -0400, Adrian wrote: >Is it possible to have PHP creates an image that graduates 1 color to >another, such as create and images 100 pixels wide and in height which >fades red to green top to bottom?
It's possible. I have just been experimenting with it using ImageCreateTrueColor(). See the manual: http://www.php.net/manual/en/function.imagecreatetruecolor.php You still have to use ImageColorAllocate() to get a color but you can deallocate it right after usage and you can use as many colors as you like (whereas with normal 256 color images you can't use more than 256). The process didn't noticably slow my 1 Ghz PC down. I made some nice fades in two directions too: http://www.chipdir.nl/adprov/adb/cdb/468_60/08en.png BTW. I made it look like the upper text has been pressed downward into the material and the lower text has been pressed upward out of the material. (Using alpha channel coloring.) Let me know if you want to see the source code... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php