🖲 Array containing all current touch points within the browser window. Each touch being an object with id, x, and y properties.
id
x
y
Consider using the pointers array instead, which includes mouse, touch, and pen input.
pointers
q5.draw = function () { background(0.8); for (let pt of pointers) { circle(pt.x, pt.y, 100); }}; Copy
q5.draw = function () { background(0.8); for (let pt of pointers) { circle(pt.x, pt.y, 100); }};
🖲 Array containing all current touch points within the browser window. Each touch being an object with
id,x, andyproperties.Consider using the
pointersarray instead, which includes mouse, touch, and pen input.