Balls with gravitation

Web Workers Demo

Built using HTML5, Canvas, Web Workers


More About This Demo From The Author

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

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:

No comments yet.

Register or log in to add your own.

Get the Source Code

Download the Source 4.58 KB · ZIP File

This demo is released under the Apache license.

More by HTML5-Tag