UNPKG

@tomiaa/canvas-graffiti

Version:
12 lines (11 loc) 214 B
const s = { pointerdown({ offsetX: t, offsetY: o }) { this.points.push({ x: t, y: o }); }, pointermove(t) { this.ctx.clearRect(t.offsetX - 25, t.offsetY - 25, 50, 50); } }; export { s as Erase };