Space - Toggle Show/Hide Polygons and Calculate π π = PI Showing Polygons will increase Points by 0.5s every points If else, Points increase every frame Formula calculate PI (√(sin(360/p)^2)+(1-(cos(360/p)^2)))*p)/2 distance from [0,1] to [sin(360/p),cos(360/p)] * p /2 NOTE : [x,y] p = points
Calculating PI is not accurate if points more than 10^1000 Edit : -Points Variable Fix More accurate PI Formula and simple n*sin(180/n) n > 1000