In my last update, I was able to achieve coastlines:
However, I saw that in order to create continents, I had to overcome two obstacles:
- Land/water ratio
- Having multiple continents
First, I will arbitrarily make white ocean and black land. To make this easier to see, I will assign ocean a light blue color and land a brown color. These solid colors will be replaced soon with much better textures.
I can actually solve both obstacles with one action. I just need to figure out how to reduce the land/water ratio.
When the fractal that I am using outputs a value, my program takes the value and assigns the value to land or water based on whether it is above or below zero. If it is above zero, it becomes land, and if it is below zero, it becomes ocean.
I can therefore decrease the land/water ratio by subtracting a constant from the output values of the fractal (I will go with 2). This means that while a value like 1 would have originally been land (1 > 0), with the new equation it will become water. (1 - 2 = -1 < 0) I got result below.
I have continents.