Sine in Creative Coding
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
[The Nature of Code](https://natureofcode.com/book/chapter-3-oscillation/)
-
Course notes:
Watch
3.1: Angles and Angular Motion - The Nature of Code
3.2: Trigonometry and Polar Coordinates - The Nature of Code
3.3: Simple Harmonic Motion - The Nature of Code
3.6 Graphing Sine Wave - Nature of Code
Trigonometry - The graphs of sin and cos