The famous triangle fractal, in 20 line, with funky colors!
do
sync on:sync rate 0:hide mouse:randomize timer():i=50000
set display mode 800,600,16:lock pixels:x#=rnd(800):y#=rnd(600)
for c=1 to 800:ink rgb(40-(0.05*c),40-(0.05*c),40-(0.05*c)),0:line c,0,c,600:next c
for k=1 to i
n#=(rnd(100)):n#=n#/100
if n#<(0.3333333)
x#=0.5*x#:y#=0.5*y#
endif
if (0.3333333)<n# and n#=<(0.6666666)
x#=0.5*(400+x#):y#=0.5*(y#+600)
endif
if (0.6666666)<n#
x#=0.5*(x#+800):y#=0.5*y#
endif
ink rgb(rnd(255),rnd(255),rnd(255)),0:dot x#,600-y#
fastsync
next k
unlock pixels:sync
loop
-ESC
"That's not a bug, it's a feature!"
"When all else fails, read the instructions"
-ESC