tubeshowcase●1,028,892 videos♡ My collection 0
← Learn to Code

Learn to Code22:02

Coding Challenge #16: L-System Fractal Trees

The Coding Train ↗

From the creator

In this third installment of my series on algorithmic botany, I discuss L-systems and how they can be used to generate trees and other fractal patterns in p5.js. Code: https://thecodingtrain.com/challenges/16-l-system-fractal-trees 🕹️ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/QmTx-Y_UP 🎥 Previous video: https://youtu.be/fcdNSZ9IzJM?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH 🎥 Next video: https://youtu.be/kKT0v3qhIQY?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH 🎥 All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH References: 🔗 L-systems: https://en.wikipedia.org/wiki/L-system 🌿 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=5420s Related Coding Challenges: 🚂 #14 Recursive Fractal Trees: https://youtu.be/0jjeOYMjmDU 🚂 #123 Chaos Game: https://youtu.be/7gNzMtYo9n4 🚂 #174 AppleSoft Basic Fractal Tree: https://youtu.be/UNkHditYGls Timestamps: 0:00 Introducing today's topic: L-systems 0:57 The elements of an L-system 4:12 Let's Code! 4:42 Add rules 6:22 Write a generate function 8:46 Create a button 12:32 Use a particular L-system 13:32 Read the text and draw to the screen 14:19 Write a turtle function 18:08 Translate to the bottom, middle of the screen 20:08 Add an angle variable 21:11 Add some a

Published 2016-05-31 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code