title: How to change angle mode in processing.js?
body: <p>Khan Academy processing.js uses degrees as default for angle values, but you can modify it by:</p>
  
  <pre><code>angleMode("radians");
  </code></pre>
  
  <p>Processing.js uses radians as default, but the documentation refers to an angle mode (here as a parameter of rotate function):</p>
  
  <blockquote>
    <p>angle float: angle of rotation specified in radians or degrees
    depending on the current angle mode</p>
  </blockquote>
  
  <p>But I didn't find a function to change it. The code of the rotate function itself suggest that there is no degree mode:</p>
  
  <pre><code>Drawing2D.prototype.rotate = function(angleInRadians) {
    modelView.rotateZ(angleInRadians);
    modelViewInv.invRotateZ(angleInRadians);
    curContext.rotate(angleInRadians);
  };
  </code></pre>
  
  <p>Is there a means to change the angle mode?</p>