Sine in Creative Coding

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.