p5.js | Mouse movedY
The movedY variable in p5.js contains the vertical movement of the mouse since the last frame of the sketch. A positive value indicates that the mouse moved down and a negative value indicates that it moved up in the last frame.
The program below illustrates the movedY variable in p5.js:
Environment Setup: https://www.geeksforgeeks.org/p5-js-soundfile-object-installation-and-methods/