tubeshowcase●913,532 videos♡ My collection 0
← Learn to Code

Learn to Code44:19

Coding Challenge #61: Fractal Spirograph

The Coding Train ↗

From the creator

In this coding challenge, I attempt to create a "Fractal Spirograph" with Processing (Java). The visuals are inspired by images and explanation on C. J. Chen’s blog. Code: https://thecodingtrain.com/challenges/61-fractal-spirograph 🕹️ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/Q60oWddzr 🎥 Previous video: https://youtu.be/O_0fRV4MTZo?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH 🎥 Next video: https://youtu.be/KakpnfDv_f0?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH 🎥 All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH References: 🖊 C.J.Chen's blog on Fractal Spirograph: http://benice-equation.blogspot.ca/2012/01/fractal-spirograph.html Videos: 🎥 My Video on Polar Coordinates: https://youtu.be/O5wjXoFrau4 🎥 Live Stream #81: Fractal Spirograph: https://youtu.be/S5Qj-JgAN-M Related Coding Challenges: 🚂 #7 Solar System (2D): https://youtu.be/l8SiJ-RmeHU 🚂 #55 Mathematical Rose Patterns: https://youtu.be/f5QBExMNB1I 🚂 #116 Lissajous Curve Table: https://youtu.be/--6eyLO78CY Timestamps: 0:00 Introduction 1:45 Benice equation 3:26 The solar system coding challenge 4:45 Polar to cartesian coordinates 5:53 Draw first circle 6:44 Add a second circle 8:54 Use polar coordinates to find radius of second circle 9:52 Increment the angle to rotate second circle around first circle 11:02 Save the points of the path of the second circle 14:07 Add an Orbit class 16:41 Linked lists 19:01 Write an addChild() function 23:20 Write a loop to add

Published 2017-02-28 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code