Video

Normal distribution paint splatter

Unfortunately your browser is not able to show this content.

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

Further explorations into randomness this time using a normal (or gaussian) distribution. This is a randomization process that shows a natural distribution instead of complete randomness. For instance the height of a population is distributed this way. People can be 150 cm to 240 cm but most people have a height around the mean (somewhere around 180 or something).

This first example splatters paint around your mouse (x-mean and y-mean) position based on a standard deviation of 30 pixels.

End result looks like the aftermath of a confetti party 😉

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