Accumulative Colour

Overview

This simulation uses composite operations of the canvas API. A number of discs are generated which move around at a constant velocity and reflect from the walls. Each is drawn as a radial gradient that fades to the background colour at the edge. As the discs overlap, the colours are added together to produce interesting mixing behaviour, leading to glowing plasma-like graphics.