Coding Challenge #30: Phyllotaxis

Subscribers:
1,750,000
Published on ● Video Link: https://www.youtube.com/watch?v=KWoJgHFYWxY



Duration: 11:02
160,398 views
3,446


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







Tags:
challenge
code
coding
p5.js
daniel shiffman
processing
p5js
p5.js tutorial
creative coding
the nature of code
algorithmic botany
procedural botany
algorithmic sunflower
phyllotaxis
phyllotaxis simulation
phyllotaxis algorithm
phyllotaxis javascript
sunflower simulation
sunflower algorithm