Turtle snow fall: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 27: | Line 27: | ||
t.ht(); | t.ht(); | ||
function snow() { | function snow() { | ||
t.setPos(Math.random()*300 | t.setPos(Math.random()*600-300,Math.random()*600-300); | ||
snowflake( | snowflake(30*Math.random(),3); | ||
active = setTimeout(snow,50); | active = setTimeout(snow,50); | ||
} | } |