Hi there...
Anyone knows why this code only allocates color 255 times?
// create the image
$gif = ImageCreate(500,500);
for ($row=0; $row<50; $row++)
{
for ($col=0; $col<50; $col++)
{
$red = $col5;
$spotcolor= ImageColorAllocate($gif,$red,0,0);
imagefilledrectangle($gif,$col10,$row10,($col10)+8,($row*10)+8,$spotcolor);
}
}
// send the image
header("content-type: image/gif");
ImageGif($gif);
It looks like there is a limit to ImageColorAllocate. I could not find this anywhere.
Thanks