Jump to content

Barnsley fern: Difference between revisions

Line 737:
 
=={{header|Craft Basic}}==
<syntaxhighlight lang="basic">let'fern x1fractal = 0example
 
let y1 = 0
define x1 = 0, y1 = 0
 
bgcolor 0, 0, 0
fgcolor 0, 255, 0
cls
 
do
label loop
 
let r = (rnd)
Line 774:
let x1 = ( x + 3 ) * 70
let y1 = 700 - y * 70
 
fgcolor 0, int: (rnd) * 255, 0
 
gethdc
Line 783 ⟶ 785:
wait
 
ifloop n < 10000 then loop
 
print "done"</syntaxhighlight>
305

edits

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