Coding Challenge #30: Phyllotaxis
The Coding Train The Coding Train
1.68M subscribers
164,325 views
0

 Published On Aug 3, 2016

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...

šŸ•¹ļø p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/s...

šŸŽ„ Previous video: Ā Ā Ā ā€¢Ā CodingĀ ChallengeĀ #29:Ā SmartĀ RocketsĀ i...Ā Ā 
šŸŽ„ Next video: Ā Ā Ā ā€¢Ā CodingĀ ChallengeĀ #31:Ā FlappyĀ BirdĀ Ā 
šŸŽ„ All videos: Ā Ā Ā ā€¢Ā CodingĀ ChallengesĀ Ā 

References:
šŸ—„ Phyllotaxis on Wikipedia: https://en.wikipedia.org/wiki/Phyllot...
šŸ“˜ Algorithmic Botany - Phyllotaxis: http://algorithmicbotany.org/papers/a...

Videos:
šŸŽ„ Algorithmic Botany: https://thecodingtrain.com/tracks/alg...
šŸŽ„ Polar to Cartesian Coordinates: Ā Ā Ā ā€¢Ā 3.4Ā PolarĀ CoordinatesĀ -Ā TheĀ NatureĀ of...Ā Ā 
šŸŽ„ Golan Levin's Modulo Operator video: Ā Ā Ā ā€¢Ā GuestĀ TutorialĀ #6:Ā TheĀ ModuloĀ Operato...Ā Ā 
šŸ”“ Live Stream Archive #54: Ā Ā Ā ā€¢Ā LiveĀ StreamĀ #54Ā -Ā PhyllotaxisĀ andĀ Mor...Ā Ā 

Related Coding Challenges:
šŸš‚ #14 Recursive Fractal Trees: Ā Ā Ā ā€¢Ā CodingĀ ChallengeĀ #14:Ā FractalĀ TreesĀ -...Ā Ā 
šŸš‚ #15 Object-Oriented Fractal Trees: Ā Ā Ā ā€¢Ā CodingĀ ChallengeĀ #15:Ā ObjectĀ Oriented...Ā Ā 
šŸš‚ #16 Fractal Trees - L-System: Ā Ā Ā ā€¢Ā CodingĀ ChallengeĀ #16:Ā L-SystemĀ Fracta...Ā Ā 
šŸš‚ #81 Circle Morphing: Ā Ā Ā ā€¢Ā CodingĀ ChallengeĀ #81.1:Ā CircleĀ Morphi...Ā Ā 
šŸš‚ #133 Times Tables Cardioid Visualization: Ā Ā Ā ā€¢Ā CodingĀ ChallengeĀ #133:Ā TimesĀ TablesĀ C...Ā Ā 
šŸš‚ #134 Heart Curve: Ā Ā Ā ā€¢Ā CodingĀ ChallengeĀ #134.1:Ā HeartĀ CurveĀ Ā 

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/pas...
šŸš© Suggest Topics: https://github.com/CodingTrain/Sugges...
šŸ’” GitHub: https://github.com/CodingTrain
šŸ’¬ Discord: Ā Ā /Ā discordĀ Ā 
šŸ’– Membership: http://youtube.com/thecodingtrain/join
šŸ›’ Store: https://standard.tv/codingtrain
šŸ–‹ļø Twitter: Ā Ā /Ā thecodingtrainĀ Ā 
šŸ“ø Instagram: Ā Ā /Ā the.coding.trainĀ Ā 

šŸŽ„ Coding Challenges: Ā Ā Ā ā€¢Ā CodingĀ ChallengesĀ Ā 
šŸŽ„ Intro to Programming: Ā Ā Ā ā€¢Ā StartĀ learningĀ here!Ā Ā 

šŸ”— 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-o...

This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecod...

#algorithmicbotany #phyllotaxis #generativeart #p5js #javascript

show more

Share/Embed