Coding Challenge #108: Barnsley Fern
Visualizing the Barnsley Fern fractal with Processing (Java)! Code: https://thecodingtrain.com/challenges/108-barnsley-fern
đšī¸ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/G4V940Y8V
đĨ Previous video: https://youtu.be/diGjw5tghYU?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
đĨ Next video: https://youtu.be/Ae73YY_GAU8?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
đĨ All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
Links Discussed:
đ Barnsley fern on Wikipedia: https://en.wikipedia.org/wiki/Barnsley_fern
Videos:
đĨ Algorithmic Botany Track: https://thecodingtrain.com/tracks/algorithmic-botany
đĨ Matrix Math: https://youtu.be/uSzGdfdOoG8
đ´ Livestream Archive: https://youtu.be/_9ZerP7pGvc
Related Coding Challenges:
đ #14 Recursive Fractal Trees: https://youtu.be/0jjeOYMjmDU
đ #15 Object-Oriented Fractal Trees: https://youtu.be/fcdNSZ9IzJM
đ #16 Fractal Trees - L-System: https://youtu.be/E1B4UoSQMFw
đ #17 Space Colonization: https://youtu.be/kKT0v3qhIQY
đ #18 3D Fractal Trees: https://youtu.be/JcopTKXt8L8
đ #174 AppleSoft Basic Fractal Tree: https://youtu.be/UNkHditYGls
Timestamps:
0:00 Introducing today's topic
0:49 Discuss the algorithm
2:23 Explanation of matrix algebra
4:20 Let's Code!
5:24 Input the transformation formula for next x and y
7:15 Remap the values to the width and height of the canvas
8:32 Add other transformation formulas for next x and y
11:12 Pick a random number to choose the tranformation
12:08 Add nextPoint, drawPoint functions
13:51 Add probabilities
15:57 Update the range
16:41 Thanks for watching!
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://discord.gg/hPuGy2g
đ 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
#fractals #algorithmicbotany #p5js #javascript

