DailyJS

JavaScript Particle System

Introduction

Alex R. Young

Subscribe

@dailyjs

Facebook

Google+

animation graphics

JavaScript Particle System

Posted by Alex R. Young on .
Featured

animation graphics

JavaScript Particle System

Posted by Alex R. Young on .

After yesterday's Processing.js
article
I discovered this
post about creating a particle system with JavaScript and a canvas:
Parcycle: A Particle System with HTML5 canvas.

You can view the effect in action in this demo:
Parcycle

I found the use of
globalCompositeOperation very interesting in this code. It allowed the author to make particles
appear lighter when they overlap by using a drawing mode rather than
detecting the colour on the canvas.