rotational-velocity.js 192 B

12345678910
  1. var stage = new mtm.Stage('c'),
  2. arrow = new Arrow(stage.width/2, stage.height/2),
  3. vr = 20;
  4. stage.shapes.push(arrow);
  5. stage.play(function() {
  6. arrow.radians += vr * Math.PI/180;
  7. });