Coding Challenge #97: The Book of Pi - Part 1

Описание к видео Coding Challenge #97: The Book of Pi - Part 1

In yet another “Pi Day” coding challenge, I attempt to generate a pdf “Book of Pi” with the first 10 million digits of Pi mapped to color. Processing (Java) is used for this project. Code: https://thecodingtrain.com/challenges...

Other Parts of this Challenge:
📺 Part 2: The Book of Pi:    • Coding Challenge #97: The Book of Pi ...  

🎥 Previous video:    • Coding Challenge #96: Visualizing the...  
🎥 Next video:    • Coding Challenge #98.1: Quadtree - Pa...  
🎥 All videos:    • Coding Challenges  

References:
🥧 1 Billion Digits of Pi: https://stuff.mit.edu/afs/sipb/contri...
🥟 10 Million Pi Digits: https://introcs.cs.princeton.edu/java...
🍰 Million Pi Digits: http://www.piday.org/million/
🗒️ Pi Day Code: https://github.com/CodingTrain/Pi-Day...

Videos:
🎥 Polar to Cartesian:    • 3.4 Polar Coordinates - The Nature of...  
⚙️ Learning Processing:    • Introduction - Processing Tutorial  
🔴 Live Stream Archive:    • Live Stream #126.2: Happy Pi Day - Pa...  

Related Coding Challenges:
🚂 #21 Mandelbrot Set with p5.js:    • Coding Challenge #21: Mandelbrot Set ...  
🚂 #156 Peeking Inside Pi:    • Coding Challenge #156: Peeking inside Pi  
🚂 #161 Estimating π from Random Numbers with Euclid's Algorithm:    • Coding Challenge 161: Estimating π fr...  
🚂 #169 Pi in the Sky Game:    • Coding Challenge 169: Pi in the Sky Game  
🚂 #140 Leibniz Formula for Pi:    • Coding Challenge #140: Pi Approximati...  
🚂 #141 Calculating Digits of Pi with Mandelbrot Set:    • Coding Challenge #141: Calculating Di...  
🚂 #139 Calculating Digits of Pi with Collisions:    • Coding Challenge #139: Calculating Di...  
🚂 #96 Visualizing the Digits of Pi:    • Coding Challenge #96: Visualizing the...  
🚂 #95 Approximating the Value of Pi:    • Coding Challenge 95: Approximating th...  

Timestamps:
0:00 Introduction
1:40 A system to render a grid
3:10 Representing each digit of Pi as a color
5:10 Debugging
6:00 Writing the digit in the grid for debugging
8:11 The PDF Export in Processing
10:30 How big can we make this?
12:25 More debugging
13:41 Trying with a larger window size
14:45 An offscreen graphics buffer
19:15 Out of memory!
20:46 Using HSB mode
23:39 Tada!
24:06 Going back to PDF-land
27:28 An interesting point about hue
27:48 Rendering the million digits in PDF
28:35 Rendering with multiple pages!
33:20 Trying it with 10 million digits
36:03 Thank you for watching!

Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound

🚂 Website: http://thecodingtrain.com/
👾 Share Your Creation! https://thecodingtrain.com/guides/pas...
🚩 Suggest Topics: https://github.com/CodingTrain/Sugges...
💡 GitHub: https://github.com/CodingTrain
💬 Discord: https://thecodingtrain.com/discord
💖 Membership: http://youtube.com/thecodingtrain/join
🛒 Store: https://standard.tv/codingtrain
🖋️ Twitter:   / thecodingtrain  
📸 Instagram:   / the.coding.train  

🎥 Coding Challenges:    • Coding Challenges  
🎥 Intro to Programming:    • Start learning here!  

🔗 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-o...

This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecod...

#pi #piday #visualization #processing #java

Комментарии

Информация по комментариям в разработке