xxxxxxxxxx
20
let img;
// Load the image.
function preload() {
img = loadImage('newdagger.png');
}
function setup() {
createCanvas(100, 100);
// Left image.
image(img, 0, 0);
// Right image.
// Tint with a CSS color string.
tint('red');
image(img, 50, 0);
describe('Two images of an umbrella and a ceiling side-by-side. The image on the right has a red tint.');
}