Deepwell

How the rules work

Escape-time fractals

The Mandelbrot set and its relatives: one rule, repeated, and a question about whether a number runs away.

The rule

Take a number c (a point on the screen, read as a complex number). Start with z = 0 and apply z → z² + c, over and over. For some points z grows without limit, and once it passes a distance of 2 from the center it can never come back. For others it stays trapped forever. The Mandelbrot set is every point that stays trapped.

Where the color comes from

Inside points are painted dark. Outside points are colored by how many steps they took to escape. Points just outside the edge take a very long time to leave, so the edge glows with bands of color. Move the slider in the demo: with only a few steps the shape is a blob, and every step you add carves more detail into it.

Why the edge never runs out

Near the boundary, tiny changes in c decide whether the orbit escapes after 500 steps or 5,000, so new structure keeps appearing however far you zoom. Tiny copies of the whole set sit along filaments everywhere, each with its own halo of spirals.

Julia sets

Hold c fixed and let the starting z be the pixel instead. Every c gives a different Julia set. Points inside the Mandelbrot set give connected Julia sets; points outside give dust. In the explorer, shift-click a spot to see its Julia set.

Other rules

Change the rule and you get a new family: z³ + c has three-fold symmetry, the Tricorn uses the mirror image of z, and the Burning Ship takes absolute values before squaring, which tears the smooth bulbs into flames and masts.

How deep Deepwell goes

Normal graphics math runs out of precision around a zoom of 10¹⁴. Deepwell works out one reference point exactly with very large whole numbers, then lets the graphics card calculate only the tiny difference for each pixel. That keeps images sharp to roughly 10³⁴, where the card's number format finally runs out of room.

Dive in the explorer