Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Apollonian Gasket Coding Challenge - Creating Fractal Circle Patterns

Coding Train via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Dive into a 57-minute coding challenge video celebrating Pi Day 2024 by creating an Apollonian Gasket using the Descartes Circle Theorem and complex numbers. Learn to implement the mathematical concept of curvature, work with complex numbers in JavaScript, and apply the Descartes theorem to generate intricate circle patterns. Follow along as the instructor guides you through writing functions to find the fourth curvature, creating a complex number class, and implementing recursion to build the gasket. Explore techniques for validating circles, checking tangency, and setting thresholds for circle generation. Gain insights into possible variations and debugging strategies for this fascinating geometric construction. Access provided code examples, references, and related challenges to further expand your understanding of mathematical visualizations and creative coding.

Syllabus

Happy PI Day!!
References
Describe the Apollonian problem
Curvature
Start coding!
Write a function to find the fourth curvature
Complex numbers
Create a complex number class
Square root of -1
Square root of a complex number
Implement complex Descartes theorem
Make the circles in the complexDescartes function
Use an array to add recursion
Validate the circles
Check if all 4 circles are tangent
Stop adding circles when radius falls below a threshold
Implement arbirtary arrangement of circles
Debug
Possible variations
Outro

Taught by

The Coding Train

Reviews

Start your review of Apollonian Gasket Coding Challenge - Creating Fractal Circle Patterns

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.