Archived Sketch

This sketch is created with an older version of Processing,
and doesn't work on browsers anymore.

View Source Code

Click record or press 'R'
to start/stop recording (max. 10 secs)

Click capture
to take a screenshot


Buffon's Needle Problem

This sketch shows an approximation to PI with "Buffon's Needle". (http://en.wikipedia.org/wiki/Buffon%27s_needle) the ratio of needles( red/black lines are placed at random) which intersect with the grid and those which dont is an approximation to PI. ------------------- keys --------------- 'spacebar' - restart approximation 'p' - pause on/off -----------------------------------------

Buffon's Needle Problem

This sketch shows an approximation to PI with "Buffon's Needle". (http://en.wikipedia.org/wiki/Buffon%27s_needle) the ratio of needles( red/black lines are placed at random) which intersect with the grid and those which dont is an approximation to PI. ------------------- keys --------------- 'spacebar' - restart approximation 'p' - pause on/off -----------------------------------------
e.g. "mouse, keyboard"
e.g. "visualization, fractal, mouse"
learn more about Creative Commons

As a Plus+ Member feature, this source code is hidden by the owner.