Enter the void

For this week’s p5 sketch, I reused the pulsing circles sketch I did last week and added a DOM element, a slider that interacts with it.

Control the slider to turn up the “noise”:


Originally I wanted the sketch to act the same way as last week’s elegant pulsing circles. However, because I had to put the slider value code in “draw” instead of “setup” (otherwise it won’t animate), the pulse objects get created randomly in draw over and over again, giving it no time to grow or shrink (both functions are included in the “pulse.display” function.

Here is part of the code:


Though not my intention, the sketch turns out to be nice, so I’m keeping it the way it is.

No Comments

Post A Comment