xxxxxxxxxx
13
let info = "https://discourse.processing.org/t/p5js-pixels-not-working/17561 // thunderball "+
"\nhttps://p5js.org/reference/#/p5/pixels";
let w = 200;
function setup() {
createCanvas(w, w);
print(info);
background(0);
loadPixels();
for (let i = 0; i < 4 * w * w; i += 4 * (w + 1) ) pixels[i] = 255; // pixel 0,1,2 RED is in pixels[0,4,8]
updatePixels();
}