Coding Challenge #30: Phyllotaxis

The Coding Train
The Coding Train
165 هزار بار بازدید - 8 سال پیش - In this coding challenge, I
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: discord
💖 Membership: http://youtube.com/thecodingtrain/join
🛒 Store: https://standard.tv/codingtrain
🖋️ Twitter: Twitter: thecodingtrain
📸 Instagram: 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
8 سال پیش در تاریخ 1395/05/13 منتشر شده است.
165,096 بـار بازدید شده
... بیشتر