MCPcopy Create free account
hub / github.com/aosabook/500lines / right

Function right

blockcode/code/turtle.js:100–100  ·  view source on GitHub ↗
(block)

Source from the content-addressed store, hash-verified

98 function _turn(degrees){ direction += deg2rad(degrees); }
99 function left(block){ _turn(Block.value(block)); }
100 function right(block){ _turn(-Block.value(block)); }
101 function recenter(){ position = {x: WIDTH/2, y: HEIGHT/2}; }
102
103 function clear(){

Callers 1

angular.jsFile · 0.85

Calls 2

_turnFunction · 0.85
valueMethod · 0.80

Tested by

no test coverage detected