Press escape to exit fullscreen

{{sketch.instructions}}

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

{{$t('general.by')}}
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 -----------------------------------------
{{$t('general.eg',["mouse, keyboard"])}}
{{$t('general.eg',["visualization, fractal, mouse"])}}
{{$t('general.learnMoreAbout')}} Creative Commons
{{$t('general.joinPlus')}}
{{$t('sketch.privateURLDescription')}}
{{$t('sketch.privateURL-pleaseSave')}}
  • {{v.title}}

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

  • {{co.title}}