xxxxxxxxxx
23
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
let x = 0;
let y = 0;
for(let i = 0; i < width; i++) {
for(let j = 0; j < height; j++) {
// strokeWeight(1);
// stroke(random(255));
// point(x,y);
let pixel = get(x,y);
set(x,y,color(255, 0, 255));
y++;
}
x++;
y = 0;
}
noLoop();
}