notes
Genuary 2023 day 9 prompt: Plants.
as with yesterday I found myself in a creative rut unable to come up with any interpretation of "plants," so I started looking online for inspiration. Searched the hashtag #genuary9 and found this piece by okazzsp that I liked and I'll try to replicate it.
I couldn't figure out how to make the petals of the flower... it's not so simple since it needs to run along the periphery of the center of the flower. One must rotate around the center of the flower, draw a petal at the top, and rotate the rest of the drawing, and draw a petal at the top again and stop eventually. The number of petals must be pre-calculated or else there will be unpredictable overlaps. Also, what shape should the petals be?
in the end I copied the code from the artist linked above and commented out code to try and deconstruct it to learn how it works. Without diving deeper into what a "vertex" is and what are the significance of the constant TAU and the sine and cosine functions, I won't be able to fully understand what is going on.
in other words, if I want to create these shapes I'll need to re-learn some math and apply them.
generative art surprisingly calls for more math than software engineering on a day to day basis!
created with p5.js, a JavaScript library for creative coding.