Code from video: editor.p5js.org/BarneyCodes/s...
Other L System rules to try: paulbourke.net/fractals/lsys/
Wiki article on L Systems: en.wikipedia.org/wiki/L-system
L Systems are really great for easily generating plants, but it's always bugged me how much the plant changes between generations. I want to watch my plants grow smoothly! So today we are going to fix that by linearly interpolating (lerping) between L System states.
Follow me:
Support the channel: www.youtube.com/@BarneyCodes/...
Twitter: / barneycodes
Reddit: / barneycodes
Chapters:
0:00 Intro
1:03 L System refresher
1:52 Linear interpolation (lerp)
2:23 Updated draw rules
3:19 Which characters to lerp?
4:27 Updated L System rules
5:19 Drawing lerped L Systems
6:30 Quick recap
6:43 Bringing it all together
#creativecoding #p5js #javascript
Негізгі бет Animating Procedural Plant Growth (L System Lerp)
Пікірлер: 17