I want to make a PHP file that will allow me to feed it starting and ending RGB values and the width of the image that I want, and it will 'automagically' create a blend from whatever colour to whatever colour, in the width specified.
I've looked through the PHP manual for creating images, but it seems that the problem lies with allocating a colour from a variable... That and the fact that the line that starts at 0,0 seems to start at either 150,0 or 0,150 (on an image of about 250 pixels) depending on if it's on my PC (Windows XP) or my friend Dan's PC (Windows 2000) I know that shouldn't make a difference, because we're both looking at it on the same server anyway, but it seems to.
Anyway, the script is working (not) here: http://www.strangelyrandom.com/GrannyT/Blender.php
And I've changed the source to a text file, here: http://www.strangelyrandom.com/GrannyT/Blender.txt
The reason for the first line being fixed to red is just to test why the image always ends up completely black.
KITT fan2K