Modeling Elastic Collisions w/ HTML5 and JavaScript

Demo uses the HTML5 canvas element to draw orbs which bounce off each other. Bounce effect achieved by applying equations for two dimensional elastic collisions.

建立方法 JavaScript, HTML5, Canvas

  • 118 個檢視數

作者所寫的更多關於此 Demo 的資訊

Demos accepts query parameters "size" and "num":

size = Size of the orbs
num = Number of orbs

關於此 Demo

下載原始碼 90.18 KB · ZIP 格式

此 demo 係以 Apache 條款進行授權。