How it works:
generation:
Two equations with many sine waves are used, 1 for processing y, 1 for processing x. These equations generate different values,
and those values are then averaged. This means that the same y and x value is put in, the same value between 0 and 1 will be
received. The equations have many terms, so that the sinusoidal nature is disguised.
However, x and y need to change in order for new terrain to be generated, so y is incremented as time passes. Because x being
simply incremented would cause a strange skew in terrain, x is instead offset by a sine wave. Overall, it generates passable terrain.
drawing:
By default, a rectangle is drawn across the whole canvas with a varying hue based on time. Then, all pixels are looped through.
Noise values range from 0 to 1. If the noise value for that pixel is greater than 0.5, it is colored grey, and if it is greater
than 0.75, it is colored white.