Uploaded March 2024 | Updated November 2026, 3 days ago
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: thecodingtrain.com/challenges/182-apollonian-gasket
π Watch this video ad-free on Nebula nebula.tv/videos/codingtrain-coding-challenge-182-apollonian-gasket
p5.js Web Editor Sketches:
πΉοΈ Apollonian Gasket: editor.p5js.org/codingtrain/sketches/zrq8KHXnO
πΉοΈ Colorful Recursive Gaskets in Gaskets: editor.p5js.org/codingtrain/sketches/leBpmVwaM
π₯ Previous: youtu.be/Bxdt6T_1qgc?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ All: youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
References:
π Apollonian Gasket: en.wikipedia.org/wiki/Apollonian_gasket
π A Tisket, a Tasket, an Apollonian Gasket: americanscientist.org/article/a-tisket-a-tasket-an-apollonian-gasket
π Apollonian Gaskets: mathlesstraveled.com/2016/04/27/apollonian-gaskets
π Beyond the Descartes Circle Theorem: arxiv.org/pdf/math/0101066.pdf
π The Kiss Precise: nature.com/articles/1371021a0#preview
π Frederick Soddy: en.wikipedia.org/wiki/Frederick_Soddy
π Problem of Apollonius: en.wikipedia.org/wiki/Problem_of_Apollonius
π Four Proofs of a Generalization of the Descartes Circle Theorem: jstor.org/stable/2316373
π Beyond the Descartes Circle Theorem: arxiv.org/pdf/math/0101066.pdf
π Descartes' theorem: en.wikipedia.org/wiki/Descartes%27_theorem
π Complex.js: npmjs.com/package/complex.js
Related Coding Challenges:
π 21 Mandelbrot Set with p5.js: youtu.be/6z7GQewK-Ks
π 22 Julia Set in Processing: youtu.be/fAsaSkmbF5s
π 77 Recursion: youtu.be/jPsZwrV9ld0
π 50 Circle Packing: youtu.be/QHEQuoIKgNE
π 95 Approximating the Value of Pi: youtu.be/5cNnf_7e92Q
π 96 Visualizing the Digits of Pi: youtu.be/WEd_UIKG-uc
π 97 The Book of Pi: youtu.be/tbvG9hrJxOU
π 139 Calculating Digits of Pi with Collisions: youtu.be/PoW8g67XNxA
π 140 Leibniz Formula for Pi: youtu.be/uH4trBNn540
π 141 Calculating Digits of Pi with Mandelbrot Set: youtu.be/pn2vlselv_g
π 169 Pi in the Sky Game: youtu.be/_H9JIwWP7HQ
π 176 Buffon's Needle: youtu.be/h5ZNcAPXxew
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 arbitrary 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: thecodingtrain.com
πΎ Share Your Creation! thecodingtrain.com/guides/passenger-showcase-guide
π© Suggest Topics: github.com/CodingTrain/Suggestion-Box
π‘ GitHub: github.com/CodingTrain
π¬ Discord: thecodingtrain.com/discord
π Membership: youtube.com/thecodingtrain/join
π Store: standard.tv/codingtrain
ποΈ Twitter: twitter.com/thecodingtrain
πΈ Instagram: instagram.com/the.coding.train
π₯ Coding Challenges: youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ Intro to Programming: youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
π p5.js: p5js.org
π p5.js Web Editor: editor.p5js.org
π Processing: processing.org
π Code of Conduct: github.com/CodingTrain/Code-of-Conduct
This description was auto-generated. If you see a problem, please open an issue: github.com/CodingTrain/thecodingtrain.com/issues/new
#apolloniangasket #pi #circlepacking #complexnumbers #curvature #descartestheorem #p5js #javascript
=====================================================
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: thecodingtrain.com/challenges/182-apollonian-gasket
π Watch this video ad-free on Nebula nebula.tv/videos/codingtrain-coding-challenge-182-apollonian-gasket
p5.js Web Editor Sketches:
πΉοΈ Apollonian Gasket: editor.p5js.org/codingtrain/sketches/zrq8KHXnO
πΉοΈ Colorful Recursive Gaskets in Gaskets: editor.p5js.org/codingtrain/sketches/leBpmVwaM
π₯ Previous: youtu.be/Bxdt6T_1qgc?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ All: youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
References:
π Apollonian Gasket: en.wikipedia.org/wiki/Apollonian_gasket
π A Tisket, a Tasket, an Apollonian Gasket: americanscientist.org/article/a-tisket-a-tasket-an-apollonian-gasket
π Apollonian Gaskets: mathlesstraveled.com/2016/04/27/apollonian-gaskets
π Beyond the Descartes Circle Theorem: arxiv.org/pdf/math/0101066.pdf
π The Kiss Precise: nature.com/articles/1371021a0#preview
π Frederick Soddy: en.wikipedia.org/wiki/Frederick_Soddy
π Problem of Apollonius: en.wikipedia.org/wiki/Problem_of_Apollonius
π Four Proofs of a Generalization of the Descartes Circle Theorem: jstor.org/stable/2316373
π Beyond the Descartes Circle Theorem: arxiv.org/pdf/math/0101066.pdf
π Descartes' theorem: en.wikipedia.org/wiki/Descartes%27_theorem
π Complex.js: npmjs.com/package/complex.js
Related Coding Challenges:
π 21 Mandelbrot Set with p5.js: youtu.be/6z7GQewK-Ks
π 22 Julia Set in Processing: youtu.be/fAsaSkmbF5s
π 77 Recursion: youtu.be/jPsZwrV9ld0
π 50 Circle Packing: youtu.be/QHEQuoIKgNE
π 95 Approximating the Value of Pi: youtu.be/5cNnf_7e92Q
π 96 Visualizing the Digits of Pi: youtu.be/WEd_UIKG-uc
π 97 The Book of Pi: youtu.be/tbvG9hrJxOU
π 139 Calculating Digits of Pi with Collisions: youtu.be/PoW8g67XNxA
π 140 Leibniz Formula for Pi: youtu.be/uH4trBNn540
π 141 Calculating Digits of Pi with Mandelbrot Set: youtu.be/pn2vlselv_g
π 169 Pi in the Sky Game: youtu.be/_H9JIwWP7HQ
π 176 Buffon's Needle: youtu.be/h5ZNcAPXxew
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 arbitrary 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: thecodingtrain.com
πΎ Share Your Creation! thecodingtrain.com/guides/passenger-showcase-guide
π© Suggest Topics: github.com/CodingTrain/Suggestion-Box
π‘ GitHub: github.com/CodingTrain
π¬ Discord: thecodingtrain.com/discord
π Membership: youtube.com/thecodingtrain/join
π Store: standard.tv/codingtrain
ποΈ Twitter: twitter.com/thecodingtrain
πΈ Instagram: instagram.com/the.coding.train
π₯ Coding Challenges: youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ Intro to Programming: youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
π p5.js: p5js.org
π p5.js Web Editor: editor.p5js.org
π Processing: processing.org
π Code of Conduct: github.com/CodingTrain/Code-of-Conduct
This description was auto-generated. If you see a problem, please open an issue: github.com/CodingTrain/thecodingtrain.com/issues/new
#apolloniangasket #pi #circlepacking #complexnumbers #curvature #descartestheorem #p5js #javascript
=====================================================




![Coding Train Live: Riding the Oregon Trail 2
π‘Sign up for the CuriosityStream + Nebula bundle with a 26% exclusive discount ($14.79 for a full year!) at https://curiositystream.com/choochoo. To access my Nebula class, upgrade for $1 per month or $10 for year!
Launching my next project, a p5.js port of the original Apple ][ Oregon Trail game!
π» https://github.com/CodingTrain/Oregon-Trail
Timestamps:
0:00 Waiting to start
6:28 Welcome to a pop-up episode of the Coding Train Live!
18:37 Curiosity Stream
21:39 Discord Help forum
52:44 Start working on Oregon Trail sketch
1:01:30 Create a game.json file to store the meta data for the game
1:40:28 Rob & Akiva podcast
1:42:10 Add issues to GitHub repo
1:46:05 Invite link to Coding Train Discord
1:48:00 Nebula
2:00:00 Bye everyone
Links:
π Rob & Akiva podcast https://www.podcastone.com/episode/Rob Akiva-Need-a-Podcast-The-Oregon-Trail
π 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
#p5js #oregontrail #game Coding Train Live: Riding the Oregon Trail 2](https://i.ytimg.com/vi/7quQVO_K6Gg/mqdefault.jpg)





