Red Dot Pulses

July 24, 2020

For creative coding class we had to make a sketch with the following criteria:

  • One element controlled by the mouse.
  • One element that changes over time, independently of the mouse.
  • One element that is different every time you run the sketch.

The dots are drawn along axis randomly set on page load. Dots are drawn along these axis based on mouse movement: x axis dots are drawn according to mouse y movement, and y axis dots are drawn according to mouse x movement. The red dot pulses over time.

https://editor.p5js.org/jaymollica/sketches/RSmhM_pbf