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