RE: [PHP] Graduated fills using PHP Images

From: Date: Fri, 15 Aug 2003 12:29:24 +0000
Subject: RE: [PHP] Graduated fills using PHP Images
Groups: php.general 
Request: Send a blank email to php-general+get-159677@lists.php.net to get a copy of this message
[snip] 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? [/snip] http://us3.php.net/image You could set the color index and the loop through (while incrementing) each new index. Seems awfully intensive though. I know that jpgraph (http://www.aditus.nu/jpgraph/) can use gradiated backgrounds for some of its output...perhaps you could look at the code included with the class HTH!

« previous php.general (#159677) next »