Mozilla Demo Studio

  • 送出一個 Demo

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

  • 83 個檢視數
  • 0 條回應

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

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

size = Size of the orbs
num = Number of orbs


註冊登入 以新增您的回應。


下載原始碼 90.18 KB · ZIP 格式

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