Noise

Drawing noise with while-loop

Now it’s the time to learn about control structures. While loop is a powerful tool found in most ot the programming languages. If you wish, watch this video from Daniel Shiffman as an introduction.

While-loop is repeated as long as the given condition is true. In the example below, the condition is x < width (x is smaller than 500). When x is 500, the condition will be false and the program will move forward and execute draw-funcion again.

Reference
while
map
noise