Some help rendering the Mandelbrot set

前端 未结 4 426
情深已故
情深已故 2021-01-13 18:15

I have been given some work to do with the fractal visualisation of the Mandelbrot set.

I\'m not looking for a complete solution (naturally), I\'m asking for help wi

4条回答
  •  不思量自难忘°
    2021-01-13 18:23

    /d{def}def/u{dup}d[0 -185 u 0 300 u]concat/q 5e-3 d/m{mul}d/z{A u m B u
    m}d/r{rlineto}d/X -2 q 1{d/Y -2 q 2{d/A 0 d/B 0 d 64 -1 1{/f exch d/B
    A/A z sub X add d B 2 m m Y add d z add 4 gt{exit}if/f 64 d}for f 64 div
    setgray X Y moveto 0 q neg u 0 0 q u 0 r r r r fill/Y}for/X}for showpage
    

提交回复
热议问题