First option is manipulated with a potentiometer. In P5js I chose to work a nested loop and assigned to it a sliding layer on top of it to complete the pattern. This layer is controlled through the potentiometer that is also controlling simultaneously the map color from blue to pink-red. the color of the pattern changes as we go playing with the Pot.
Second option is manipulated with a potentiometer as well. In P5js I experimented with the random function that was harder to control because it is random it gives unexpected results, but eventually it worked out after MANY trials…
Labs for Input into P5js:
While it was fun to do a creative input in p5js. Labs with the graph gave weird horrible results. At first my potentiometer wasn’t responding well with the P5js, shaky number value, then too slow and not following, then weirdly when in lab they asked us to play with the delay in Arduino from (1) to (100) my potentiometer stabilized completely and i was finally able to work on the creative output in P5js.
However though i checked the the code over and over the screen shot that was put in the lab for the graph didn’t match at all my results. It gave at first a weird looking pulse that wasn’t even matching with the potentiometer, but after playing with the delay, it followed the pot but kept weird regarding the visual of the graph. I don’t understand why…
below two videos showing two (of many trials) trying to fix it).
Video of Pot going nuts
Video of Pot going less nuts