Multitouch Boids

A cluster of colourful boids that follow your fingers

建立方法 JavaScript, Canvas, Mobile, Multi-touch

  • 15959 個檢視數
  • 2 條回應

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

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).

共有 2 條回應

Log in to add your own.

  1. julirh 說,

    wow- pretty cool!
  2. Freelancer.MK 說,

    :)

About this Demo

下載原始碼 4.17 KB · ZIP 格式

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

spite 的更多作品