Coding Challenge #30: Phyllotaxis
In this coding challenge, I continue one of my favorite subjects: Algorithmic botany! This video covers the subject of Phyllotaxis, what it is and how it can be used to generate sunflower-like patterns inspired by nature. Code: https://thecodingtrain.com/challenges/30-phyllotaxis
đšī¸ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/CehY0jsLV
đĨ Previous video: https://youtu.be/bGz7mv2vD6g?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
đĨ Next video: https://youtu.be/cXgA1d_E-jY?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
đĨ All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
References:
đ Phyllotaxis on Wikipedia: https://en.wikipedia.org/wiki/Phyllotaxis
đ Algorithmic Botany - Phyllotaxis: http://algorithmicbotany.org/papers/abop/abop-ch4.pdf
Videos:
đĨ Algorithmic Botany: https://thecodingtrain.com/tracks/algorithmic-botany
đĨ Polar to Cartesian Coordinates: https://youtu.be/O5wjXoFrau4
đĨ Golan Levin's Modulo Operator video: https://www.youtube.com/watch?v=r5Iy3v1co0A
đ´ Live Stream Archive #54: https://youtu.be/MQMJ0xWSMWE
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
đ #81 Circle Morphing: https://youtu.be/u2D4sxh3MTs
đ #133 Times Tables Cardioid Visualization: https://youtu.be/bl3nc_a1nvs
đ #134 Heart Curve: https://youtu.be/oUBAi9xQ2X4
Timestamps:
0:00 Introduction
1:26 The phyllotaxis formulas
4:41 Add a dot with a specific angle and radius
5:27 Add formula for polar to cartesian coordinates
6:45 Scaling factor
7:38 Change the angle to render different patterns
8:29 Change to angleMode()
9:00 Change color mode to HSB
9:29 Cycle through the colors using modulus
10:4 Other creative possibilities
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
#algorithmicbotany #phyllotaxis #generativeart #p5js #javascript