Mandelbrot set: Difference between revisions

(→‎{{header|AmigaBASIC}}: add screenshot)
 
(One intermediate revision by the same user not shown)
Line 1,915:
==={{header|AmigaBASIC}}===
{{trans|QBasic}}
[[File:Amigabasic mandelbrot.png|thumb|Output]]
 
<syntaxhighlight lang="amigabasic">SCREEN 1,320,200,5,1
WINDOW 2,"Mandelbrot",,0,1
Line 1,964:
WHILE (1)
WEND</syntaxhighlight>
 
==={{header|Applesoft BASIC}}===
 
Line 5,645 ⟶ 5,646:
 
===Graphical version===
[[File:Mandelbrot emacs lisp.png|thumb|Output]]
With a few modifications (mandel-size, mandel-iter, string-to-image, mandel-pic), the code above can also render the Mandelbrot fractal to an XPM image and display it directly in the buffer. (You might have to scroll up in Emacs after the function has run to see its output.)
<syntaxhighlight lang="lisp">; === Graphical Mandelbrot ============================================
47

edits