In this assignment, we produced a light program to show the menstrual cycle. We showed the ovum state and the body feeling by the light motions and colors.
When exploring the code, there are some new finds.
- We used “distance()” to create a circle according to a certain point.
- We tried wide use of the “for loop” to light up a rectangle or make lines move.
- We defined different parts of our program as functions separately and called them in the “loop()” in order. Also, we use “millis” to record the time. It will be easier to manage the whole program.