Explore the Mandelbrot set and Julia sets: drag to move, scroll or pinch to zoom, visit nine presets and change the colours.
Zoom x1.0
Repeats up to 100
Deep zoom: this is close to the limit of 64-bit numbers (about 15 digits). The picture will start to look blocky, and a little more zoom is the last you get.
Detail
Drag the picture to move it. Click the picture once, then scroll the mouse wheel to zoom (or hold Ctrl while you scroll; a pinch on a trackpad does the same). On a touch screen, pinch with two fingers to zoom and drag with one to move. With the keyboard, Tab to the picture, then arrow keys move it (Shift moves further), + and - zoom, 0 starts again, M switches between the two kinds, J makes a Julia set from the middle of a Mandelbrot picture, [ and ] change the colours, D changes the detail and comma and full stop go to the previous and next place. A note appears over the picture while it is being worked out.
As-is, no warranty. These apps are free under their listed license and run entirely in your browser. Use at your own risk — don't blame me if your PC catches fire, your dog runs away, or the math turns out wrong. Verify anything that actually matters. None of this is professional financial, medical, legal, or engineering advice.
The page opens on the whole Mandelbrot set, drawn first roughly and then in detail from the middle outwards. A note over the picture says how far along it is. Nothing moves by itself.
Colour is only decoration here: the status line gives the centre and zoom in numbers.
Press Tab until the picture is selected. Arrow keys move it (Shift moves further), + and - zoom, 0 starts again, M switches between the two kinds, J makes a Julia set from the middle, [ and ] change the colours, D changes the detail, and comma and full stop go to the previous and next place. The status line says what happened. Keys are only taken while the picture is selected.
Only the picture itself stops the page scrolling under your finger. Extra fingers beyond two are ignored. The picture changes only when you ask it to: while a new one is worked out, the old one is stretched into place so you never look at a blank. With reduced motion requested, the picture is worked out in larger slices so it finishes sooner.
Take a complex number z and a fixed number c, and repeat z becomes z times z plus c. If z ever gets further than 2 from the middle, it runs away for ever. For the Mandelbrot set, z starts at 0 and c is the point you are looking at. For a Julia set, c is fixed and z starts at the point you are looking at. The page counts how many repeats it takes to pass 2, and draws points that never do (within the limit) as the dark inside.
Exact counts. The tests check the 64-bit code against exact arithmetic. They count the repeats for a grid of more than 450 points using fractions made from big integers, with no rounding at all, and the counts must match for every point, for both kinds of set. They also check known points: c = 1 escapes after 3 repeats, c = 2 after 2, and c = -2, -1, 0, i and 1/4 never escape. Just past 1/4 escape is slow, about pi over the square root of the distance past it. A pixel count over 160,000 points gives an area between 1.49 and 1.58, around the true value of 1.5066. The Julia set for c = 0 is the disc of radius 1. A shortcut that skips the loop for the main body and round bulb is checked on 30,000 random points: it never claims a point that escapes.
Smooth colour. Colouring by whole counts gives hard bands. The page keeps going until z passes radius 256, then subtracts a fraction worked out from the size of z, which makes the number change smoothly. The tests walk along a line 230,000 steps long across many band edges: the whole count jumps by 1 at each edge, but the smooth value never moves by 0.01.
Tiles. The picture is cut into 48-pixel tiles. The first pass samples the middle of each 4 by 4 block, a sixteenth of the work, and covers the whole picture. The second pass does every pixel, from the middle tile spiralling out. Each frame works for about 10 milliseconds, then draws what is finished. When the repeat limit is high (above 300, and again above 1,000) a tile is cut into slices of 12 or 4 rows and the clock is checked between slices, because a single tile at thousands of repeats could otherwise hold the page for well over 100 milliseconds. A test with a fake clock checks that every call does at least one piece of work and stops at its budget, and that the finished result equals an independent count at every pixel, for both kinds, with whole tiles and with slices.
The limit. A 64-bit number holds about 15 or 16 digits. When two neighbouring pixels are only a few of its smallest steps apart, they start to get the same number and the picture turns into blocks. The page counts those steps, shows a warning below 4,000 and refuses to zoom below 16. The tests check that at 16 every one of 960 neighbouring pixels still gets its own number, and that at a hundredth of that many share one.
| Setting | Value |
|---|---|
| Repeats allowed | 100 at the start, 55 more per doubling of zoom, 60 to 4,000 |
| Draft / Fine | half / double |
| Tile | 48 pixels |
| Picture width | up to 960 pixels |
| Warning / stop | 4,000 / 16 steps between neighbouring pixels |
Nothing is uploaded, stored or downloaded. Copy in the toolbar copies a one-line description, for example the kind of set and the zoom.
Free to play, no ads, nothing uploaded. These games are original and are not affiliated with any other game or brand.