Octaves and fbm
15
min
Add smaller noise on top of bigger noise until it looks like a coastline.
( The code )
The line that does the work.
sketch.js
v += a * noise(p); p *= 2; a *= 0.5
Open the Lab from the player and change the numbers in this line first.

( What it draws ) One render of this module’s sketch.
( Lesson notes )

This lesson is part of
Noise
A dithered terrain print
In this lesson
Add smaller noise on top of bigger noise until it looks like a coastline. We build it live in about 15 minutes, then you change it in the Lab until it is yours.
Try this after
Change one number at a time and write down what it did. Most of the good surprises in this course come from the third or fourth change, not the first.
( In this module )
Keep going.
← Previous lesson
Ridges
Next lesson →