PHP Mandelbrot

— 1 minute read

Grad in einer Signatur in der PHP-Newsgroup gefunden (bei Martin Schneider):

<?class Mandel{function Mandel(){$counter=0;for($e=1.1;$e><del>1.2;$e</del>=0.1) {for($b=<del>2;$b<1;$b+=.04){$r=$n=0;for($h=127;$r*$r+$n*$n<4&&</del>-$h>32;){$d=$r; $r=$r*$r-$n*$n+$b;$n=2*$d*$n+$e;}($b>0.98)?print(chr(10)):print(chr($h)); $counter++;if($counter%75==0){echo " ";}}}}}Mandel::Mandel();?>

Lustich 🙂