According to last week's homework, I changed the mousedrag to press the keyboard space for interaction. Every time I press the space, it generates a random rose. Added a function().

1000016101.png

And then I want my roses to spread out around the screen and grow bigger. But I wrote r+=1 here, and my rose didn't get any bigger.

1000016102.png

As soon as I realized I needed to make a change in the show, I multiplied the size of the rose by 50.

1000016103.png

As a result, the initial size of the rose became huge, and then I divided the initial size of the rose by 25, and then reduced the previous change.

1000016104.png

I wanted the rose to feel like it was disappearing, so I made it transparent slowly.

https://editor.p5js.org/yaoooo11/sketches/b6jCGzQsi

Then I was thinking about different ways of interacting. It suddenly occurred to me that there is a Chinese phrase called "spitting lotus", which is used to describe a person who is very literary. And then I wanted to control the rose with sound.

1000016106.png

https://editor.p5js.org/yaoooo11/sketches/FJMhVEUV4