Pixel Aquarium
Schools of pixel fish, each one a boid: it steers away from fish that get too close, lines up with its own kind and drifts toward the middle of its school. Move your cursor (Fry's paw) into the tank and they scatter; hold still or leave and they swim back together. Click or tap the glass to spook the lot. One of the experiments in the Lab.
How it works: every frame each fish looks at the fish within a few pixels of it and
adds up four pushes (keep apart, match heading, stay with the school, flee the paw), with
a little random wander and a pull to swim level, like real fish. A fright spreads: a
fish next to a panicking one panics a bit too, so a scare ripples through the school.
The water is drawn a pixel at a time with a 4×4 Bayer dither and slow light shafts.
Press F to feed and Space to pause, or add
?fish=200, &scale=4 or &theme=light to the
URL.