Week 01: Random Walk

I altered the given random walk algorithm into two versions.

First, I just simply gave colour variation depending on the point’s location on the canvas. (More specifically, the R and B values of RGB vary)

The code of this sketch is available here

Next, I made cat tracks in snowfield using this algorithm.

I had it to choose a random angle between -50° – 50° and made the footprint to move forward in that direction. However, I made it turn either -120° or 120° when it reaches the edge of the canvas.

The full-screen view of this sketch is available here, and you can see the source code by following this link

Leave a Reply

Your email address will not be published. Required fields are marked *