Coding Challenge #30: Phyllotaxis
165.4 هزار بار بازدید -
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: thecodingtrain.com/challenges/30-phyllotaxis
🕹️ p5.js Web Editor Sketch: editor.p5js.org/codingtrain/sketches/CehY0jsLV
🎥 Previous video: • Coding Challenge #29: Smart Rockets i...
🎥 Next video: • Coding Challenge #31: Flappy Bird
🎥 All videos: • Coding Challenges
References:
🗄 Phyllotaxis on Wikipedia: en.wikipedia.org/wiki/Phyllotaxis
📘 Algorithmic Botany - Phyllotaxis: algorithmicbotany.org/papers/abop/abop-ch4.pdf
Videos:
🎥 Algorithmic Botany: thecodingtrain.com/tracks/algorithmic-botany
🎥 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: thecodingtrain.com/
👾 Share Your Creation! thecodingtrain.com/guides/passenger-showcase-guide
🚩 Suggest Topics: github.com/CodingTrain/Suggestion-Box
💡 GitHub: github.com/CodingTrain
💬 Discord: discord.gg/hPuGy2g
💖 Membership: youtube.com/thecodingtrain/join
🛒 Store: standard.tv/codingtrain
🖋️ Twitter: twitter.com/thecodingtrain
📸 Instagram: www.instagram.com/the.coding.train/
🎥 Coding Challenges: • Coding Challenges
🎥 Intro to Programming: • Start learning here!
🔗 p5.js: p5js.org/
🔗 p5.js Web Editor: editor.p5js.org/
🔗 Processing: processing.org/
📄 Code of Conduct: github.com/CodingTrain/Code-of-Conduct
This description was auto-generated. If you see a problem, please open an issue: github.com/CodingTrain/thecodingtrain.com/issues/n…
#algorithmicbotany #phyllotaxis #generativeart #p5js #javascript
8 سال پیش
در تاریخ 1395/05/13 منتشر شده
است.
165,411
بـار بازدید شده