Mozilla Demo Studio

  • 送出一個 Demo

Balls with gravitation

Web Workers Demo

建立方法 HTML5, Canvas, Web Workers

  • 97 個檢視數
  • 0 條回應

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

Six balls of random size in a canvas. Each ball computes its moves in its dedicated web worker.

Caveat:
Since web-workers cannot share data, there is a lot of data shuffling. The model may break if a garbage collector strikes in a adverse moment. Anyhow the demo serves as a simple illustration of the concept.

Mehr verblüffend einfache HTML5-Beispiele am am HTML5-Tag 2012-05-31:
http://w3c.html5-tag.de/

還沒有回應

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

取得原始碼

下載原始碼 4.91 KB · ZIP 格式

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

HTML5-Tag 的更多作品