Coding Challenge 182: Apollonian Gasket

Happy Pi Day 2024! In this video, I attempt to create an Apollonian Gasket using the Descartes Circle Theorem and complex numbers. So many circles! Code: ๐Ÿš€ Watch this video ad-free on Nebula Web Editor Sketches: ๐Ÿ•น๏ธ Apollonian Gasket: ๐Ÿ•น๏ธ Colorful Recursive Gaskets in Gaskets: ๐ŸŽฅ Previous: ๐ŸŽฅ All: References: ๐Ÿ”— Apollonian Gasket: ๐Ÿ”— A Tisket, a Tasket, an Apollonian Gasket: ๐Ÿ”— Apollonian Gaskets: ๐Ÿ”— Beyond the Descartes Circle Theorem: ๐Ÿ”— The Kiss Precise: #preview ๐Ÿ”— Frederick Soddy: ๐Ÿ”— Problem of Apollonius: ๐Ÿ”— Four Proofs of a Generalization of the Descartes Circle Theorem: ๐Ÿ”— Beyond the Descartes Circle Theorem: ๐Ÿ”— Descartesโ€™ theorem: โ€™_theorem ๐Ÿ”— : Related Coding Challenges: ๐Ÿš‚ 21 Mandelbrot Set with : ๐Ÿš‚ 22 Julia Set in Processing: ๐Ÿš‚ 77 Recursion: ๐Ÿš‚ 50 Circle Packing: ๐Ÿš‚ 95 Approximating the Value of Pi: ๐Ÿš‚ 96 Visualizing the Digits of Pi: ๐Ÿš‚ 97 The Book of Pi: ๐Ÿš‚ 139 Calculating Digits of Pi with Collisions: ๐Ÿš‚ 140 Leibniz Formula for Pi: ๐Ÿš‚ 141 Calculating Digits of Pi with Mandelbrot Set: ๐Ÿš‚ 169 Pi in the Sky Game: ๐Ÿš‚ 176 Buffonโ€™s Needle: Timestamps: 0:00 Happy PI Day!! 1:40 References 3:22 Describe the Apollonian problem 5:51 Curvature 10:08 Start coding! 11:53 Write a function to find the fourth curvature 15:31 Complex numbers 21:11 Create a complex number class 22:52 Square root of -1 25:32 Square root of a complex number 27:57 Implement complex Descartes theorem 33:50 Make the circles in the complexDescartes function 36:26 Use an array to add recursion 41:04 Validate the circles 42:35 Check if all 4 circles are tangent 48:04 Stop adding circles when radius falls below a threshold 49:20 Implement arbirtary arrangement of circles 53:14 Debug 55:32 Possible variations 56:34 Outro Editing by Mathieu Blanchette Animations by Jason Heglund Music from Epidemic Sound ๐Ÿš‚ Website: ๐Ÿ‘พ Share Your Creation! ๐Ÿšฉ Suggest Topics: ๐Ÿ’ก GitHub: ๐Ÿ’ฌ Discord: ๐Ÿ’– Membership: ๐Ÿ›’ Store: ๐Ÿ–‹๏ธ Twitter: ๐Ÿ“ธ Instagram: ๐ŸŽฅ Coding Challenges: ๐ŸŽฅ Intro to Programming: ๐Ÿ”— : ๐Ÿ”— Web Editor: ๐Ÿ”— Processing: ๐Ÿ“„ Code of Conduct: This description was auto-generated. If you see a problem, please open an issue: #apolloniangasket #pi #circlepacking #complexnumbers #curvature #descartestheorem #p5js #javascript =====================================================
Back to Top