Difference between revisions of "Snake - the game"

From JSXGraph Wiki
Jump to navigationJump to search
Line 23: Line 23:
 
         }
 
         }
 
     }
 
     }
     var curve = board.createElement('curve', snake.points , {strokeWidth:20,opacity:0.5});
+
     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 15:10, 8 February 2009