Sketch 7 – Interactive Paintbrush

In this sketch, your mouse becomes a digital paintbrush. Move and click to paint colorful strokes that vary in size and color.

✅ Conditional: Color/stroke logic → if (mouseIsPressed) { strokeWeight(random(5,15)); stroke(random(255)); }

✅ Loop: Continuous draw loop for brush rendering

✅ Custom variables: brush color, weight, mouse position

⬇ Download sketch7.js