nufractree

nufractree.zip (1kb)

what if we could make a tiny tree? they used to call it a “tweetcart” which meant a pico8 cart that would fit in 280 characters.

cls()
p=0.111
m=0.7
x=0
function br(x1,y1,s,a,d)
local x2,y2=x1+rnd(s/m)*cos(a),y1+rnd(s/m)*sin(a)
line(x1,y1,x2,y2,8+(d/2))
if d>0 then
br(x2,y2,(s*m),(a-rnd(p)),d-1)
br(x2,y2,(s*m),(a+rnd(p)),d-1)
end
end
while x<5 do
x+=1
br(60+x,120,24,0.24,8)
end