Each six numbers of digits represent a hex color code. Demo:https://shentengtu.github.io/ColorWithPi/ You can adjust parameters and download .svg of result.
[2017/10/02] Use GitHub Page to host demo.
[2016/11/06]
Use Unbounded Spigot Algorithms to calculate PI.
The library spigot.js created by s-shin,it depend on jsbn.js & jsbn2.js.
[2016/02/20]
Using "Machin Formula" for Calculating PI and getting its digits.
- Machin Formula: Pi/4 = 4*arctan(1/5)-arctan(1/239)
The code of Calculating PI reference from Ken Ward.