Week 2: p5 Sketch – Samantha Cui

The sketch I created is a Dandelion.

How it would work is that the flower is developping more petals  as the time increses. Once it is large enough, the user could click the mouse to create a “blown” effect to the dandelion. And all the petals would disappear. Then it would start drawing a new one all over again.

The main funtion I used is the rotation of a quadrilateral I drew. I filled it with white to look closer to a dandelion. Then I drew its cernter and its stem.  To create the ‘blow’ effect, I just used ‘mousepressed’ and ‘clear’.  

One Reply to “Week 2: p5 Sketch – Samantha Cui”

Leave a Reply