Home Programs About Resources

Harmonic Motion_03

Many variations in movement can be found in exploring offset values applied to the sin function's frequency. In this example observe how the motion changes when you move the mouse horizontally. Pressing the 'c' key combines two offset values, both for position and length of the lines.

Properties

  • Position & length
  • Interactions

  • '+' & '-' changes mode [2 modes]
  • MouseX changes frequency offset
  • 'c' activates/deactivates combine mode
  • 'l' & 'm' changes grid interval
  • Source Code

    DPMOsc_003_p5js
    DPMOsc_003_processing

    Examples

    img2

    img2

    img2