Progress so far:

Screenshot 2024-10-09 at 7.59.26 PM.png

https://editor.p5js.org/Siming2024/sketches/VCRrlpJsU

Screenshot 2024-10-09 at 3.19.29 AM.png

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

IMG_5031.HEIC

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/

Screenshot 2024-10-09 at 2.14.55 AM.png

Screenshot 2024-10-09 at 2.15.28 AM.png

IMG_5800.HEIC

  1. define function: drawAFoldingFan(){implement details, multiple variables, and conditions}
  2. call function: drawFoldingFan(parameter)