You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First example of the reference should has no line drawn
Expected Behavior
describe("A horizontal black line moves up and down following the mouse's y-position.");
The solution is just a simple change "line(0, mouseY, 0, mouseY);" --> line(0, mouseY, 100, mouseY);
or change that 100 to whatever is the canvas dimension
Most appropriate sections of the p5.js website?
Reference
What is your operating system?
Mac OS
Web browser and version
Firefox 131.0 ID build 20240923135042
Actual Behavior
First example of the reference should has no line drawn
Expected Behavior
describe("A horizontal black line moves up and down following the mouse's y-position.");
The solution is just a simple change "line(0, mouseY, 0, mouseY);" --> line(0, mouseY, 100, mouseY);
or change that 100 to whatever is the canvas dimension
Steps to reproduce
https://p5js.org/reference/p5/mouseY/
https://github.com/processing/p5.js/blob/7d393ec4215ce20f7bc3178b779e0ec67689f928/src/events/mouse.js#L250C6-L250C33
Would you like to work on the issue?
yes, didnt had the time to read how to contribute properly, was a simple resolution
The text was updated successfully, but these errors were encountered: