add on click to button p5 code example Example: p5js click on button (mouseX >= 150 && mouseX <= 150+100 && mouseY >= 150 && mouseY <= 150+100