easwee.net // tiny digital playground

100k decimals of pie

100k decimals of pie visualized on HTML canvas – simple script alternates between 4 quadrants.

Fiddle script: https://jsfiddle.net/easwee/adq4a4e7/

Javascript’s Math.PI is limited to 15 decimal places, so we need to use a pre-rendered set of decimals (taken from http://www.piday.org/million/).

Image of 100k decimals of pie visualisation