Code & Algorithms » Demo & Live Tool Playground
Brian’s Theme Reborn

A Classic Demo Lives!: Brian’s Theme Reborn

"Brian's Theme", reborn in Javascript

This is a javascript recreation of “Brian’s Theme,” a classic Apple II graphics demo written by Brian Howard around 1979—an Applesoft program that drew sets of closely spaced radial lines from a random center point, and let the Apple II Plus’s limited hi-res graphics turn them into interesting moiré patterns. Where the stripes line up just right, some of them turned purple and green, due to the funky way colors were displayed on the Apple II's old CRT displays.

Click here to pop this demo out to a full-window view.
 Click inside the demo first so it gets the keyboard. Then: 1–9 change the stripe width (and restart the picture), [ speeds it up, ] slows it down.

The whole thing is about 200 lines of JavaScript. None of it is hard, although there a lot going on at once,…