xxxxxxxxxx
23
var img;
function preload() {
img = loadImage('tree.jpg');
}
function setup() {
createCanvas(400, 400);
background(0);
}
function draw() {
background(0);
image(img, 0, 0);
var l = map(mouseX, 0, width, 2, 255);
filter(INVERT);
}