Snake - the game: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 23: | Line 23: | ||
} | } | ||
} | } | ||
var curve = board.createElement('curve', snake.points , {strokeWidth:20, | var curve = board.createElement('curve', snake.points , {strokeWidth:20,strokeOpacity:0.5}); | ||
var point = board.createElement('point', [ | var point = board.createElement('point', [ | ||
Math.round(Math.random()*18)+1,Math.round(Math.random()*18)+1], | Math.round(Math.random()*18)+1,Math.round(Math.random()*18)+1], |
Revision as of 14:10, 8 February 2009