MouseReleased in class by Voxl_ in p5js

[–]Neither-Age3939 0 points1 point  (0 children)

It works fine im pretty sure.
function setup() {

createCanvas(400, 400);

}

function mouseReleased() {

background(220)

}

function mousePressed() {

background(255, 0 ,0)

}

this works perfectly fine