Mozilla Demo Studio

  • Submit a Demo

Multitouch Boids

A cluster of colourful boids that follow your fingers

Built using JavaScript, Canvas, Mobile, Multi-touch

  • 176 views
  • 1 comments

More About This Demo From The Author

This demo uses multitouch events, canvas and JavaScript to create a cluster of boids that roam the screen until one or more fingers touch it. The boids will change colour and follow a specific finger.

This demo is intended to run in a mobile device, like a mobile phone or a tablet. Should work on Firefox, Chrome and Safari. If there are no touch events, just use your mouse and click to disturb the boids.

There's an option to use the Fullscreen API. It's a bit screwy on some mobile browsers.

You can add a number in the URL hash to change the number of boids (e.g. #100 or #250).

1 comment so far

Register or log in to add your own.

  1. julirh said,

    wow- pretty cool!

Get the Source Code

Download the Source 4.17 KB · ZIP File

This demo is released under the GPL license.

More by spite