Progress so far:
https://editor.p5js.org/Siming2024/sketches/VCRrlpJsU
https://editor.p5js.org/Siming2024/sketches/Knf6Z1UIr
https://editor.p5js.org/Siming2024/sketches/827QAMt3l
My idea is to create a folding fan that opens and closes based on mouse movement.
Inspiration
The fan is comprised by 9 triangles which is 180/13 degree. What I learnt from last two assignments is I shouldn’t use triangle() anymore. Then I find the vertex function and try to draw a triangle in a ideal start position:
https://p5js.org/reference/p5/beginShape/