Coding Challenge #77: Recursion
In this coding challenge, I explore the concept of recursion to create fractal patterns in JavaScript HTML5 canvas with the p5.js library. Code: https://thecodingtrain.com/challenges/77-recursion
πΉοΈ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/pseBrWaMm
π₯ Previous video: https://youtu.be/bEyTZ5ZZxZs?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ Next video: https://youtu.be/UcdigVaIYAk?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
References:
π The Fractal Geometry of Nature: http://amzn.to/2xiVwht
Videos:
π₯ My playlist on fractals & recursion: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6bXUJvjnMWGU5SmjhI-OXef
π΄ Coding Train Live 102: https://youtu.be/-RvrDZd1xVw?t=5748s
Related Coding Challenges:
π #14 Recursive Fractal Trees: https://youtu.be/0jjeOYMjmDU
π #17 Space Colonization: https://youtu.be/kKT0v3qhIQY
π #21 Mandelbrot Set with p5.js: https://youtu.be/6z7GQewK-Ks
Timestamps:
0:00 Introducing today's topic
1:46 Start coding!
2:51 Write a drawCircle function
3:37 Add recursion to the drawCircle function
5:15 Add an exit condition
6:58 Self-similar fractals
10:10 Add randomness
11:45 Have fun coding some recursive fractals
Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound
π 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://thecodingtrain.com/discord
π 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
This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecodingtrain.com/issues/new
#recursion #fractals #beginners #javascript #p5js