Render and Animation strategy?
Sept 16, 2007 9:15:55 GMT -5
Post by rod on Sept 16, 2007 9:15:55 GMT -5
Now I have my hands dirty a question, what is the intended strategy to allow or accommodate animation on web pages?
I realise I will have to think differently and I am not talking about "Doom" style video.
In this code I tried to render more than once but only ever saw the last render and I tried a time$("seconds") type delay in a wend loop but it never triggers. Only the link triggers a render.
Is animation a no no? I wouldn't be downhearted I just want a steer on where to spend my time.
I realise I will have to think differently and I am not talking about "Doom" style video.
In this code I tried to render more than once but only ever saw the last render and I tried a time$("seconds") type delay in a wend loop but it never triggers. Only the link triggers a render.
Is animation a no no? I wouldn't be downhearted I just want a steer on where to spend my time.
DIM Cell(50,50)
GRAPHIC #1, 300,300
LINK #draw, "DrawIt", [Draw]
GOSUB [DrawGrid]
RENDER #1
WAIT
[Draw]
CLS
LINK #draw, "DrawIt", [Draw]
GOSUB [DrawGrid]
GOSUB [RandomSeed]
RENDER #1
wait
[RandomSeed]
#1 SIZE(5)
#1 COLOR("green")
for y = 1 to 50
for x = 1 to 50
if rnd(0)>.95 then
Cell(x,y)=1
#1 SET((x*6)+1, (y*6)+1)
end if
next x
next y
return
[DrawGrid]
#1 SIZE(1)
for x=150 to 0 step -1
#1 COLOR(255,min(255,x*2),255)
#1 PLACE(x,x)
#1 BOX(300-x,300-x)
next x
#1 COLOR("white")
for y = 0 to 49
for x = 0 to 49
#1 PLACE(x*6,y*6)
#1 BOX(x*6+6,y*6+6)
next x
next y
return