Particle Field

A simple particle field on canvas - the lab's hello world.

BA 1 · Particle Field · live
Material
Canvas 2D · React 19
Started
03.2026
Status
Live · running in your browser

Site notes

Hundreds of particles, one canvas, no library. Each dot drifts with a little randomness, reacts to the mouse position and draws a line to every neighbour within reach.

Built as the first experiment in the Comole Labs setup - to check that React components render live inside MDX without trouble.

Under the hood: the <ParticleField /> component runs entirely on the client, animates with requestAnimationFrame and scales to the container width on its own.

From the site diary

Motion without a library like here, or with one like the rest of the site: why route transitions do not run through React itself yet is in ViewTransition from 'react' is undefined.

Back to the site plan