🖲 Define this function to respond to mouse move events.
On touchscreen devices this function is not called when the user drags their finger on the screen.
await Canvas(200);let gray = 0.4;q5.mouseMoved = function () { background(gray % 1); gray += 0.005;}; Copy
await Canvas(200);let gray = 0.4;q5.mouseMoved = function () { background(gray % 1); gray += 0.005;};
🖲 Define this function to respond to mouse move events.
On touchscreen devices this function is not called when the user drags their finger on the screen.