random() < 0.5 as a threshold.
if (noise(x, y) > 0.5) as a threshold.
Now, let’s add some shifting and layering.
Here, we do the drawing several times, each time layering ou top of the last while changing a third dimension of the noise. Also, we shift the points based on the noise.