BlackHalt writeln (by me or from manual) PHP source Codes ...

imagefilled ellipse,rectangle

<?php
//imagefilled ellipse,rectangle
header('Content-type: image/png');
$platums=300;
$augstums=300;
$bilde=imagecreatetruecolor($platums,$augstums);
$baals=0;
for(
$i=0;$i<=255;$i++){
//$krasa=imagecolorallocate($bilde,255,$i-$baals,$i-$baals);
//$krasa=imagecolorallocate($bilde,$i-$baals,255,$i-$baals);
//$krasa=imagecolorallocate($bilde,$i-$baals,$i-$baals,255);
//$krasa=imagecolorallocate($bilde,0,$i-$baals,$i-$baals);
//$krasa=imagecolorallocate($bilde,$i-$baals,0,$i-$baals);
//$krasa=imagecolorallocate($bilde,$i-$baals,$i-$baals,0);
#
//$krasa=imagecolorallocate($bilde,255,255,$i-$baals);
//$krasa=imagecolorallocate($bilde,255,$i-$baals,255);
//$krasa=imagecolorallocate($bilde,$i-$baals,255,255);
//$krasa=imagecolorallocate($bilde,0,0,$i-$baals);
//$krasa=imagecolorallocate($bilde,0,$i-$baals,0);
$krasa=imagecolorallocate($bilde,$i-$baals,0,0);
#
imagefilledrectangle($bilde,0,0,$platums,$augstums-$i,$krasa);
imagefilledellipse($bilde,150,150,$platums-$i,$augstums,$krasa);
}
imagepng($bilde);
//$cik=count(glob('a/*.png'));
//$nosaukums=sprintf("%03d",$cik);
//imagepng($bilde,"a/$nosaukums.png");
imagedestroy($bilde);
?>