Coding Challenge #61: Fractal Spirograph | Summary and Q&A

76.7K views
โ€ข
February 28, 2017
by
The Coding Train
YouTube video player
Coding Challenge #61: Fractal Spirograph

TL;DR

In this coding challenge, Dan Shiffman attempts to create a fractal spirograph pattern using nested circles orbiting each other.

Install to Summarize YouTube Videos and Get Transcripts

Key Insights

  • โญ• The fractal spirograph pattern is created by nesting circles and having the smallest circle trace out a pattern.
  • ๐Ÿง˜ Trigonometry can be used to position the circles based on their radii and angles.
  • ๐Ÿช The PVector data structure can be used to store the path traced by the smallest circle.
  • ๐Ÿชน The level of detail in the pattern can be adjusted by changing the resolution and the number of nested circles.

Transcript

Read and summarize the transcript of this video on Glasp Reader (beta).

Questions & Answers

Q: What is the purpose of the coding challenge?

The purpose of the challenge is to create a fractal spirograph pattern using nested circles and explore different design possibilities.

Q: How does Shiffman position the circles?

Shiffman positions the circles using trignometric functions to calculate the X and Y coordinates based on the radius and angle.

Q: Why does Shiffman use the PVector data structure?

Shiffman uses the PVector data structure to store the points that make up the path traced by the smallest circle.

Q: How does Shiffman represent the nested circles?

Shiffman represents the nested circles using an object-oriented approach, with each circle being an instance of the Orbit class.

Summary & Key Takeaways

  • Dan Shiffman introduces the coding challenge of creating a fractal spirograph pattern using nested circles.

  • He explains the concept of nested circles orbiting each other, with the smallest circle tracing out a pattern.

  • Shiffman demonstrates how to use trignometry to position the circles, and how to create a path to trace their movement.

Share This Summary ๐Ÿ“š

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Explore More Summaries from The Coding Train ๐Ÿ“š

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on: