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