Coding Challenge #96: Visualizing the Digits of Pi
In celebration of Pi Day, Let's attempt to “visualize” the first one million digits of Pi. Code: https://thecodingtrain.com/challenges/96-visualizing-digits-of-pi
🕹️ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/FBIJy_-2Y
🎥 Previous video: https://youtu.be/5cNnf_7e92Q?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
🎥 All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
References:
📰 Washington Post Article: https://www.washingtonpost.com/news/wonk/wp/2015/03/14/10-stunning-images-show-the-beauty-hidden-in-pi/?utm_term=.e232a2caa3ed
🎨 Pi Artwork: http://mkweb.bcgsc.ca/pi/art/
🥧 1 Billion Digits of Pi: https://stuff.mit.edu/afs/sipb/contrib/pi/
🥟 Million Pi Digits: http://www.piday.org/million/
🖋️ Pi Day Code: https://github.com/CodingTrain/PiDay
Videos:
📔 Polar to Cartesian: https://youtu.be//more/archive/nature-of-code/3-Oscillation/3.2-Trigonometry-and-Polar-Coordinates
📽️ Pi is Beautiful: https://youtu.be/NPoj8lk9Fo4
⚙️ Learning Processing: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZYJC7L-r6rX6utt6wwJCyi
🎥 Livestream Archive: https://www.youtube.com/watch?v=BOk4Dl-gw14
Related Coding Challenges:
🚂 #140 Leibniz Formula for Pi: https://youtu.be/uH4trBNn540
🚂 #156 Peeking Inside Pi: https://youtu.be/MEdpRYyjz_0
🚂 #161 Estimating π from Random Numbers with Euclid's Algorithm: https://youtu.be/EvS_a921dBo
🚂 #169 Pi in the Sky Game: https://youtu.be/_H9JIwWP7HQ
Timestamps:
0:00 Introduction
1:05 Let's get started! Loading the digits of Pi
3:01 Converting the string to an array of integers
4:59 Visualizing based on frequency of a digit
8:07 Putting them in path of a circle
9:26 Visualizing based on the next digits
12:23 Debugging
13:18 The point of this video
13:40 Make your version, and share with us!
14:11 Some randomness
15:08 You, the viewer of this video!
Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound
🚂 Website: http://thecodingtrain.com/
👾 Share Your Creation! https://thecodingtrain.com/guides/passenger-showcase-guide
🚩 Suggest Topics: https://github.com/CodingTrain/Suggestion-Box
💡 GitHub: https://github.com/CodingTrain
💬 Discord: https://discord.gg/hPuGy2g
💖 Membership: http://youtube.com/thecodingtrain/join
🛒 Store: https://standard.tv/codingtrain
🖋️ Twitter: https://twitter.com/thecodingtrain
📸 Instagram: https://www.instagram.com/the.coding.train/
🎥 Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
🎥 Intro to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
🔗 p5.js: https://p5js.org
🔗 p5.js Web Editor: https://editor.p5js.org/
🔗 Processing: https://processing.org
📄 Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct
This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecodingtrain.com/issues/new
#piday #pivisualization #pi #java #processing