23:24Coding Challenge #15: Object Oriented Fractal Trees
From the creator
More algorithmic botany! Another way to generate a fractal tree is to consider every part of the tree an object, so that we can apply forces and attributes to all the branches and leaves and more! Code: https://thecodingtrain.com/challenges/15-object-oriented-fractal-trees 🕹️ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/JDT5wrxVj 🎥 Previous video: https://youtu.be/0jjeOYMjmDU?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH 🎥 Next video: https://youtu.be/E1B4UoSQMFw?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH 🎥 All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH References: 🌿 Algorithmic Botany: http://algorithmicbotany.org/ 📕 My NOC class on Kadenze: https://www.kadenze.com/courses/the-nature-of-code/info Videos: 🎥 Algorithmic Botany Track: https://thecodingtrain.com/tracks/algorithmic-botany 🔴 Coding Train Live 40: https://youtu.be/MwLyeEWnMCY?t=3153s Related Coding Challenges: 🚂 #14 Recursive Fractal Trees: https://youtu.be/0jjeOYMjmDU 🚂 #16 Fractal Trees - L-System: https://youtu.be/E1B4UoSQMFw 🚂 #174 AppleSoft Basic Fractal Tree: https://youtu.be/UNkHditYGls Timestamps: 0:00 Introducing today's topic 1;44 Write a Branch constructor function 3:00 Add a single Branch object for the root of the tree 5:53 Add a tree array 7:20 Write a branch object to created 2 attached branch objects 9:30 Create a direction vector that points from the beginning to the end of the vector 10:12 Determine new end point 11:00 Add a new branch to
Published 2016-05-30 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.





