Press escape to exit fullscreen


CC {{sketch.licenseObject.short}}

Archived Sketch

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

View Source Code

Click capture
to take a screenshot

Buffon's Needle Problem

This sketch shows an approximation to PI with "Buffon's 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 -----------------------------------------
{{$t('',["mouse, keyboard"])}}
{{$t('',["visualization, fractal, mouse"])}}
{{$t('general.learnMoreAbout')}} Creative Commons
  • {{v.title}}

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

  • {{co.title}}