Please help with a note
| From: | Jason Norwood-Young | Date: | Thu, 16 Nov 2006 09:01:15 +0000 |
| Subject: | Please help with a note | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-33307@lists.php.net to get a copy of this message | ||
Hi there
I posted a note to php.net yesterday - it was a real mission because
apparently my IP is blocked by you guys so I ended up having to go into
a server remotely and post from there. In all the hassle I managed to
leave out the description of what the code does. It's the first note
under http://www.php.net/manual/en/ref.image.php
from
jason@tectonic.co.za. I'd appreciate it if you could drop in a
description above the code:
A nifty function that replaces any single colour ($chromacolor) with a
gradient. Great for making pretty graphs. Black to a colour is
particularly attractive.
Eg to replace grey with a gradient from black to green:
$black = ImagecolorAllocate( $image, 0, 0, 0 );
$grey = ImagecolorAllocate( $image, 110, 110, 110 );
$green = imagecolorallocate($image, 153, 204, 0);
chromagradient($image,$black,$green,$grey);
Your help is greatly appreciated
Kind regards
Jason