2016-09-11 ■ シフマン先生による公式example 加速しながら中心から回転する円。 var x = r*cos(theta); var y = r*sin(theta); rはheight*0.45なのでcanvasの中心から45%までの距離で、円が回転する。 theta_vel += theta_acc; theta += theta_vel; theta_velはtheta_acceの値のぶんだけ毎フレーム大きくなっていく。 そのtheta_velがthetaに足されるので、加速するように見える。 See the Pen <a href="http://codepen.io/NaokiMattari/pen/BLoOQE/" data-mce-href="http://codepen.io/NaokiMattari/pen/BLoOQE/">BLoOQE</a> by Naoki Yasuda (<a href="http://codepen.io/NaokiMattari" data-mce-href="http://codepen.io/NaokiMattari">@NaokiMattari</a>) on <a href="http://codepen.io" data-mce-href="http://codepen.io">CodePen</a>.