Coding Challenge #30: Phyllotaxis

preview_player
Показать описание


References:

Videos:

Related Coding Challenges:

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

#algorithmicbotany #phyllotaxis #generativeart #p5js #javascript
Рекомендации по теме
Комментарии
Автор

I'm commenting this a year after I first watched your video. I did my highschool final year coding project on phyllotaxy and your channel helped me out so much. Not just for the code and resources, but the approach you take. Now I'm studying botany and computer sciences in college and I wanna work on algorithmic botany/chemistry in the future. Just wanted to let you know. Thanks dude

sumedha
Автор

Dude, you HAVE to try increasing the angle(137.5) slowly over time(0.5/s looks good). its awesome and kinda hypnotic to look at

komolunanole
Автор

just shared your channel with all my buddies from uni, dude u deserve at least 1 million subs, great video keep it up


from Daniel to Daniel!

danielescotece
Автор

This angle is an approximation of (360/ Phi^2) or (360 / (Phi+1))
Phi = Golden Ratio = [ 1 + Sqrt(5) ] / 2

sleepingeye
Автор

From Calgary, you are awesome, I have seen comments stating you are the boss Ross of coding, I have to agree!

Thermonator
Автор

I always think a lot of your videos produce things that would be amazing loading screens.

maxbot
Автор

this was easy but i couldn't have even thought of doing it.

clintsayshi
Автор

i'm subscribing. You are smart and funny. Keep up thr good work.

denisivanov
Автор

I just realized it was you who taught me processing through the screen, about 4 years ago =) Made this in processing and made the "seeds" gradually grow and get more spaced apart. Thanks for so much =)

isixqueenxofxmadness
Автор

Loving this video! If you're darn picky about the angle not screwing up after multiple iterations use 137.508 instead. :D

vvzen
Автор

I work with bioinformatics and its my first contact with programming. Your videos are really helping me!

Markinsization
Автор

HSBs H goes from 0 to 360, so you may have noticed it changing from blue to red (255 is a bluish color). Just pointing that out!

AnonYmous-txgc
Автор

2020 anyone???
this is soo fun

Edit: I can't believe u hearted my comment thank u soo much. My school has a mandatory curriculum for python and when I have time I try to replicate some of your smaller in python turtle module projects like this, the Lorenz attractor, the lotus mathematics and I really enjoy it.

bavanindhra
Автор

The angle you should be using for the most even distribution as the radius increases is 360*golden ratio, or 360*(2-golden ratio) which gives the same result and approximately 137.507764.

Googolgon
Автор

Favorite vid yet for playing around with the variables

jimmccloskey
Автор

I watched many of your videos. You made me love maths again.

Mohammed-tgbj
Автор

love watching your videos, but HSB takes a hue argument in [0, 360] not [0, 255], in case you were wondering why your rainbows aren't periodic. keep up the good work!

SamEbertz
Автор

First argument of HSB color mode is in range 0-359, not 0-255. This way you can have continuous gradient between blue and red colors.

Bogdanko
Автор

Best thing I found on youtube so far. Keep it up, you are awesome ! Greetings from Brazil :)

davidhsv
Автор

Its 3 AM in the morning, and I am still watching your coding videos. My brother things I'm going crazy or something. Love your videos 💯

arpitjangir