Turtle snow fall: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 26: | Line 26: | ||
} | } | ||
t.ht(); | t.ht(); | ||
snowflake( | function snow() { | ||
t.setPos(Math.random()*300-150,Math.random()*300-150); | |||
snowflake(15,3); | |||
active = setTimeout(snow,20); | |||
} | |||
snow(); | |||
</textarea><br /> | </textarea><br /> | ||
Line 44: | Line 49: | ||
} | } | ||
function clearturtle() { | function clearturtle() { | ||
clearTimeout(active); | |||
t.cs(); | t.cs(); | ||
} | } |