p5.js · 5 / 6

Dashboard
Creative coding · p5.js

Pointer trails & presses

mouseX, mouseY, and pmouseX/pmouseY drive expressive brushes. Semi-transparent background() in draw() keeps trails instead of clearing fully — tap inside the iframe to sketch.