Pointilizer

Original demo by Erik Dahlström, published August 22, 2010.

Open Pointilizer in the gallery

Pointilizer joined two web graphics technologies that were often presented as rivals. Canvas did the pixel work and SVG did the drawing. It was adapted from textorizer, an earlier tool by Max Froumentin.

An image is drawn to an off-screen canvas, and the script samples random pixels. A Sobel filter measures how sharply brightness changes at each one, and only pixels on an edge are kept, until there are a thousand. Each point records its position, colour and a scale taken from the strength of that edge.

Raphaël then creates one circle per point. They start as large transparent discs and bounce down into small solid dots, so the outline of the source image appears to condense out of a cloud. Moving the pointer over a dot makes it swell, and it settles when the pointer leaves.

This restoration keeps the original pointilizer code and Raphaël 1.5.0 unchanged. The source image is a new star and exclamation mark. Two small fixes went into the page script: each dot now remembers its own size after a hover, where the original reused the last dot’s value, and the drawing scales with the window. Pressing R replays it, and reduced motion skips the entrance animation.

This note was newly written for the reconstruction. Read the original post in the Internet Archive.

Topics: Canvas, Animation, Raphaël