NOC – Week 3: Petals in Flames II – Tiger Tian

Date: 03-02-2019

Click here to visit on P5 Web Editor

For this week’s vector assignment, I redid my “Petals in Flames” idea with vector. This time I made it more colorful, using more random function but in a way that doesn’t produce inharmonious combinations of colors. The small flower in the middle is made using HSB color mode, by mapping the hues of the ellipses to their positions. I also added a spinning effect to it. It spins clockwise by itself, and mouse movements make it spin faster.

I kept the petal number changing function, which increases and decreases the number of petals. When you hold the mouse, all the petals close inwards by a “freeze” function. Another function called “bloom” is triggered every time the mouse is released, making those squarish objects burst out of screen.

Leave a Reply