Week 2 MLNI – Rotation Snowflake – p5 drawing functions (Cherry Cai)

Rotation Snowflake

Click here to check my project!

This week, I had developed a p5 sketch utilizing transformation functions

Code

 

Functions
By using the translate method, I changed the origin of the canvas and draw the snowflake at (0, 0). Furthermore, by using rotate functions to rotate different shapes, I created the movement of the figure. 

Leave a Reply