$img = ImageCreateTrueColor(255, 255);
$plotD = 0;
while($plotD < 255)
{
ImageLine($img, 0, $plotD , 255, $plotD,
ImageColorAllocate($img, $plotD, $plotD, $plotD));
$plotD++;
}
Header("Content-type: image/jpeg");
Imagejpeg($img);
ImageDestroy($img);
/*INTERESTING EFFECTS WITH THESE NUMBERS
ImageLine($img, $plotD, 255, $plotD, 0,
ImageLine($img, $plotD,$plotD,255, 0,
ImageLine($img, $plotD,255, 0,$plotD,
ImageLine($img, $plotD,255, 255,$plotD,
FOR A SIDE GRADIENT CHANGE LOOP TO
$plotD = 255;
while($plotD > 0){
$plotD--};
AND LINE TO
ImageLine($img, $plotD, 255, $plotD, 0,
MORE INTERESTING EFFECTS WITH NEG LOOP
ImageLine($img, 0, 0, $plotD, 255,
ImageLine($img, 0, $plotD, 255, $plotD,
ImageLine($img, $plotD, 255, 0, 0,
ImageLine($img, 0, $plotD, 255, 0,
ImageLine($img, 255, 255, 0, $plotD,
ImageLine($img, 255, 0, $plotD, 255,
ImageLine($img, $plotD, 0, 255, 255,
VERTICAL AGAIN--ImageLine($img, 0, $plotD, 255, $plotD,
Imageellipse($img, $plotD, $plotD, 127, 127,
Imageellipse($img, $plotD, $plotD, $plotD, $plotD,
Imageellipse($img, 127, 127, $plotD, $plotD,
*/
?>