Noise by itself is just a bunch of numbers. We need to assign meaning to it. The first thing we might think of is to make the noise correspond to elevation (also called a “height map”). Let’s take the noise from earlier and draw it as elevation:
The code is almost the same, except for what’s inside the inner loop; it now looks like this:
elevation[y][x] = noise(nx, ny);
Yes, that’s it. The map data is the same, but now I call it elevation instead of value.
Lots of hills, but not much else. What’s wrong?