Multitouch Boids

A cluster of colourful boids that follow your fingers

建立方法 JavaScript, Canvas, 移动, 多点触控

  • 5374 次观看


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


下载源代码 4.17 KB · ZIP 格式

此演示发布于 GPL 授权之下。

spite 的更多作品