xxxxxxxxxx
21
function setup() {
createCanvas(800, 800);
img = loadImage('face.png');
// img = loadImage('./assets/face.png');
}
function draw() {
//image(img, 200, 200);
h = {value:5};
console.log(h.value);
background(220);
tint (128, 0, 0, 90);
image(img, mouseX-128, mouseY-128, 256, 256);
noTint();
//cursor(CROSS);
//cursor(img);
//cursor(TEXT='Face'); //WRONG
cursor('face.png');
}