Snake - the game: Difference between revisions

From JSXGraph Wiki
No edit summary
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,opacity: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:08, 8 February 2009