Jump to content

Mandelbrot set: Difference between revisions

m
Line 3,357:
 
=={{header|Craft Basic}}==
<syntaxhighlight lang="basic">'title "Mandelbrot fractal example"
 
title "Mandelbrot"
 
define max = 15, w = 640, h = 480
Line 3,376 ⟶ 3,374:
do
 
let sy = ( py - h / 2 ) / 150
let sx = ( px - w / 2 ) / 150
let i = 0
Line 3,398 ⟶ 3,396:
 
fgcolor 220 + i * x, 220 + i * y, 230 + i * xy
 
rect px, py, 4, 4
 
Line 3,410 ⟶ 3,407:
 
fgcolor 255, 255, 0
print "done"</syntaxhighlight>
 
end</syntaxhighlight>
 
=={{header|D}}==
305

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.