david meissner


CircleSquared

Press the space bar or refresh the page to generate a new image. (To use the space bar, click inside the image border first so that the image has the focus).

CircleSquared is another program from The Armchair Universe, by A.K. Dewdney. Like Hopalong, the algorithm is described in the chapter Wallpaper For The Mind. The image is created by iterating a simple formula and assigning a color based on the result.

My version generates a random palette of two to seven colors plus black and white for each image. The parameters that create the image are shown at the bottom in case I want to recreate an image. The random palette can be seen by using the Javascript console in the browser to inspect the “colors” array.