Turtle snow fall: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 28: Line 28:
function snow() {
function snow() {
   t.setPos(Math.random()*600-300,Math.random()*600-300);
   t.setPos(Math.random()*600-300,Math.random()*600-300);
   snowflake(30*Math.random(),3);
   snowflake(30*Math.random(),Math.floor(Math.random()*4));
   active = setTimeout(snow,50);
   active = setTimeout(snow,50);
}
}

Revision as of 19:59, 21 December 2008


References