Skip to content
Math Background Studioby GordonKit
Open Studio

Fractal island map

Coastlines, shallows and mountains from fractal noise, drawn like a map or a survey sheet. Land share and roughness are adjustable.

Open Fractal island map in Studio

Fractal island map background example

Stack several layers of noise, each with bumps of a different size, and you get a height map that looks like real terrain. Choose a sea level: everything above it is land, everything below is sea, and the coastline appears by itself.

How the maths works

h*o = 0o = 1o = 2
Three layers of noise: each layer down doubles the frequency and shrinks the height (thin lines). Added together they make terrain with both large and small bumps (bold line). The dashed line is sea level, and what rises above it is land.
Formula
fBm: o layers of noise (frequency doubles, height times g)
h(p) = Σₒ gᵒ · noise(2ᵒ · f · p)
The height ratio g between layers comes from roughness
g = 0.3 + 0.4 · roughness
Domain warp: push each point aside, then read its height
p → p + w · (fbm(p + a), fbm(p + b))
Land is wherever the height is above sea level h*
land: h(p) > h*

This kind of height field is called fractional Brownian motion (fBm). Layer o has 2ᵒ times the frequency and its height is multiplied by gᵒ: the large bumps decide where the islands are, the small ones carve bays and capes. A larger g keeps more detail and makes rougher coasts.

Coast winding uses domain warping: two more noise fields push every point aside a little before its height is read. Smooth contours are twisted into fjords and peninsulas.

Sea level is not a fixed height but the quantile that matches the land share, so land covers about the same area for any style or aspect ratio. The coastline itself is a fractal: zoom in and there are always smaller wiggles. This is the famous question of how long the coast of Britain is.

Parameters

Style
Atlas uses fixed colours from deep sea through beach and grass to peaks; Palette map uses the current palette; Lines draws only the coastlines and contours.
Atlas colours · Palette map · Lines only
Scale
Scale of the largest layer of bumps. Higher values give more, smaller islands.
0.5 to 4
Detail levels
How many layers of noise to add. More layers give finer coasts and ridges.
2 to 7
Roughness
How much height each finer layer keeps (g). Higher is more rugged, lower is smoother.
Ratio, 0 to 1
Coast winding
Strength of the domain warp. 0 gives smooth island shapes; higher values give winding, fjord-like coasts.
Ratio, 0 to 1
Land share
Share of the map that is land; sea level is chosen to match it.
0.15 to 0.85
Land levels
How many height bands to colour on land, like the layers of a relief map.
1 to 12
Sea levels
How many depth bands to colour at sea.
1 to 6
Coast line width
Width of the coastline, relative to the short side of the canvas.
0.0005 to 0.008

Examples

Each example opens in the studio with these settings.

Using it as a background

A land share of 0.3 to 0.4 with more coast winding gives an archipelago; 0.7 or more looks like a continent, good for geography or adventure themes.

Lines on a light background make a survey map. Text reads best placed over the sea.