if you just want different sprites ide just capture several different images with the tree
so you would call the tree algorithm several times to make your different images
with different parameters. Each of these could be saved out as an image and imported
into a sprite maker to make an animated sprite or you could just set the sprites visibility to off
set sprite visibility 1 to on then turn off 1 and turn on 2 etc while it cycles through the sprites
a timer event could be used.
goodluck
Edited this kinda gives the growing effect your after by controlling the amount of recursions
Il leave it to you to make it up the right way up like the first example
// set window properties
SetWindowTitle( "Fractal Math" )
SetWindowSize( 1024, 768, 0 )
SetSyncRate(30,0) `
// set display properties
SetVirtualResolution( 1024, 768 )
spr=CreateSprite(0)
SetSpriteSize(spr,100,1)
SetSpriteOffset(spr,0,0)
Render()
img=1
sprite=1
for t = 1 to 10
cantor2(512,100,200,0,t,80) //1 recursion
Swap()
sleep(100)
if GetImageExists(img) then DeleteImage(img)
getimage(img,0,0,1024,768)
if GetSpriteExists(sprite) then DeleteSprite(sprite)
CreateSprite(sprite,img)
next t
length#=1
do
Sync()
loop
function cantor2(x as float,y as float,length as float,recursions as integer,maxRecursions as integer,ang as integer)
local x2 as float
local y2 as float
if length>1 and recursions<maxRecursions
x2= length * cos(ang) + x //calculate endx point given length and angle
y2= length * sin(ang) + y //calculate endy point given length and angle
DrawLine(x,y,x2,y2,MakeColor(255,255,255),MakeColor(255,255,255))
cantor2(x2,y2,length/1.5,recursions+1,maxRecursions,ang+random(10,15))
cantor2(x2,y2,length/1.5,recursions+1,maxRecursions,ang-random(10,15))
//if you change the above to this it will add some randomness but if you
//try to draw gradually with the draw command it will appear as if there is wind
//cantor2(x2,y2,length/1.5,ang+random(10,15))
//cantor2(x2,y2,length/1.5,ang-random(10,15))
endif
endfunction