xxxxxxxxxx
25
let img;
let pixelsAsColors = [];
function preload() {
img = loadImage('sufjan.jpg');
}
function setup() {
img.resize(img.width/2, img.height/2);
createCanvas(img.width, img.height);
image(img, 0, 0);
copy(img, 0, 0, width/2, height/2, width/2, 0, width/2, height);
}