/* for_3.txt */ float $x; float $y; float $z; int $i; int $j; int $k; shape $lSphere; for $i = 1 to 5 do { $x = $i*10 - 30; for $j = 1 to 5 do { $y = $j*10 - 30; for $k = 1 to 5 do { $z = $k*10 - 30; $lSphere = sphere(5 + $k*0.5 - $j*0.5 + $i*2); $lSphere.loc = ($x, $y, $z); } } } renderer("Scanline"); render();