In creative coding, sin and cos can be used for:
- Draw a wave
- Arrange items in circles and spirals
- Generate smooth periodic motion
- An ingredient of “fields”, that fill a line or space with a pattern that determines color, shape, or other qualities of drawing or motion that appears in that space.
Read
- Getting Started with p5.js, “Circular’, pp. 162–172
- Course notes:
2bc9fe1d0b0d40ef9bbb86ef8a969e5c