Image

Random Walker

Unfortunately your browser is not able to show this content.

You can download random_walker.pde (Sourcecode) and compile it with Processing.

This sketch is an example from the first chapter of a wonderful book I just bought called “The Nature Of Code” written by Daniel Shiffman.

The idea of a random walker is well.. that it walks randomly. Each time the walker takes a step it flips a coin to determine which direction it will walk, and after that it will leave a trail in the form of a dot, with a random color.

This sketch is perfect if you want to create a zombie Apocalypse!

ps: click to reset

Leave a Reply