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
=====================================================