Adil Rabbani


Visualizing Pi in p5.js

Carrying on from the tutorial on 'Visualizing 1 million digits of Pi' by Daniel Shiffman, I decided to recreate Krzywinski and Vasile's Visualization of Pi in p5.js. Though still not complete, it turned out really beautiful! Numbers from 0-9 are each given a different color, mapped around the circle. Numbers are then connected across the circle through a line. The small dots represent the occurence of two consecutive digits.