To Play: Change theta and check the results for Pi. PI is defined as the ratio of a circle's circumference to its diameter (Circumference/Diameter). The result should be 3.14159 regardless of the size of the circle. I wanted to see if I could calculate PI by measuring the diameter and the circumference. It looks like my measuring techniques are more accurate for larger circles and result in 4 digits of accuracy. For very small circles the technique is not very accurate at all. The method for calculating the diameter is probably pretty accurate: Subtract the rightmost x-position from the left most x-position. The method for calculating the circumference is probably where the errors are introduced. The circle is drawn by moving one step and then turning right theta degrees. The process is repeated until we end up back where we started. The circumference is assumed to be the number of steps that we took to complete the circle.
I was inspired by this project by @annoyingperson that uses a very clever technique (that I don't really understand...) to calculate Pi: http://scratch.mit.edu/projects/26091988/#comments-21899105