We are about to switch to a new forum software. Until then we have removed the registration on this forum.
function gui_mouseClicked() {
buttons.map((button) => {
if(button.checkClick() === "save") {
saveJSON(nn,"nn.json");
}
})
}
This function runs inside mouseClicked()
. The checkClick()
function just returns something if the mouse is on the button. nn
is an object .
Answers
Have you tried mousePressed() instead? :-/
https://Forum.Processing.org/two/discussion/13376/savecanvas-is-being-called-over-and-over-crashes-fiefox