Recitation3
This time I used the sine and cosine to create a motion, and I added random variables to colors so that the color of every circle drawn is uncertain
Here’s the URL to the project https://editor.p5js.org/zzrrqqq/sketches/blqAg8mOK
The problem is I tried to record a gif, but it never downloaded even though I closed all of the filters of Safari, so I finally record the screen and uploaded it as my work. It’s here https://youtube.com/shorts/kFnBnY1joYo?feature=share
This time the code went quite well, the only problem is to calculate the trigonometric function to create an axial symmetry shape, and it went quite well.
Reflection
1. Basically I used the linear functions and the trigonometric functions, linear functions are direct and easy to use. However if we really want to create some beautiful curly motions, we need to use sine and cosine to accomplish that. With trigonometric functions, there can be much more changes and beautiful figures.
2.I experienced the motion of combining the graph of the trigonometric functions together. If the drawing was completed the picture was an axial symmetry shape and it’s quite beautiful. The process of combining them is more about calculating the write number to use in the function.
3.With map, it’s more easy to convert numbers, meaning no need to use PI and type in complicated functions to convert the numbers to what is appropriate to present on the canvas.
4.By converting the function of a circle: sin^2+cos^2 =a
Leave a Reply