xxxxxxxxxx
35
let img;
let myCanvas;
function preload() {
img = loadImage ("https://th.bing.com/th/id/OIG.aNqD2DLYf_snrEaj01eu?pid=ImgGn");
}
function setup() {
img.resize(400, 400);
myCanvas = createCanvas(img.width, img.height);
for (let i = 0; i < img.width; i+=10){
for (let j = 0; j < img.height; j+=10){
let colour = img.get(i, j);
let r = colour[0];
let g = colour[1];
let b = colour[2];
let al = colour[3];
stroke(r,g,b,al);
noFill();
strokeWeight(2);
circle(i,j,10)
strokeWeight(10);
line(i,j,i+7,j+5);
}
}
}
function draw() {
}