Code from video: editor.p5js.org/BarneyCodes/s...
L-Systems are a really great way of generating all kinds of different shapes, especially plants, but it bothers me that they always generate the SAME plant each time. In this video, I fix this by adding random elements to the L-System definition to create some very easy procedural plants!
Follow me:
Support the channel: www.youtube.com/@BarneyCodes/...
Twitter: / barneycodes
Reddit: / barneycodes
Chapters:
0:00 What's wrong with L Systems?
0:31 How we're going to fix it
1:12 The setup
1:32 The upgraded generate function
2:23 Choosing a random rule
2:51 Using array rules
3:38 Adding more variety
4:20 MORE VARIETY
5:21 Final thoughts
#creativecoding #p5js #javascript #lsystem
Негізгі бет Infinite Plant Variations with Random L Systems Rules
Пікірлер: 19