|
|
|
MandelIterate z c maxiter
is a nice example for a user-defined primitive. It helps computing the Mandelbrot set faster. Like in:
to mandelIterateLogo z c maxiter
repeat maxiter [ z*=z z+=c if z > 4 [output repcount] ] output maxiter |
|
|
|