Skip to content
Browser Screensaver

Boids Screensaver

A few hundred birds wheeling around the screen, splitting apart and reforming, with no leader and no path. Every one of them is following the same three rules about its immediate neighbours, and the flock is what happens next.

Press F for fullscreen, Esc to exit.

What the boids screensaver is

The rules are Craig Reynolds’, published in 1986, and there are only three. Steer away from anyone too close. Match the average heading of the birds you can see. Move towards where that group is. Nothing else — no flock object, no destination, no coordination between any two birds beyond what each can see for itself.

What comes out is a textbook case of emergence: behaviour that exists at the level of the group without existing anywhere in the rules. Reynolds’ demo is why nearly every crowd or flock in film since has been simulated rather than animated, and it took a decade to reach the screen in Batman Returns.

  • A calm but never static display for an office or a lobby
  • A live illustration of emergent behaviour for teaching
  • A background with movement that does not demand attention

Flocking simulation as a screensaver

Flock size changes the character completely, not just the count. Forty birds spend most of their time as two or three loose groups that rarely meet; two hundred is where the recognisable wheeling starts; five hundred behaves like a single body with waves passing through it. Each bird is shaded by how many neighbours it currently has, so dense knots in the flock are visibly brighter as they form and dissolve.

The birds are turned away from the edges rather than bounced or wrapped around. A bounce puts a visible crease through the flock, and wrapping breaks the sense that neighbours are neighbours.

How to run the boids screensaver full screen

Press the fullscreen button on the player, or the F key. Escape brings you back to the page. On a desktop browser F11 does the same job and hides the browser’s own toolbars as well, which is what you want on a display that is going to be left running.

Everything you change in the settings is written into the address bar as you change it, so the version you have set up is a link. Bookmark it, or send it to whoever is running the screen. Space pauses and resumes at any time.

Questions

What are boids?

A flocking model published by Craig Reynolds in 1986. The name is a contraction of "bird-oid object". Each agent follows three local rules — separation, alignment and cohesion — and realistic flocking emerges without any of them being told what a flock is.

Do the birds ever have a destination?

No. There is no target, no leader and no path. Every direction change you see comes from birds reacting to the ones near them, which is why the flock can split, curve back on itself and reform without anything planning it.

How many can it handle?

Up to five hundred here, which is comfortable on a normal machine. Every bird checks every other one each frame, so the work grows with the square of the flock size — that is the reason for the ceiling, not the drawing.

Is the boids screensaver free?

Yes — free, with no account, no download, no watermark and no time limit. It is a web page, so it runs on anything with a modern browser.

How do I stop it or exit fullscreen?

Press Escape to leave fullscreen, or F to toggle it. Space pauses the animation without leaving the page. If you used F11 to hide the browser toolbars, press F11 to bring them back.