xxxxxxxxxx
24
const density = 'Ñ@#W$9876543210?!abc;:+=-,._';
function preload() {
io = loadImage('ioio.png');
}
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
image(io, 0, 0, width, height);
for(let i = 0; i < io.width; i++){
for(let j = 0; j < io.height; j++){
const pixelIndex = (i, j * io.width)*4;
const r = io.pixels[pixelIndex + 0];
const g = io.pixels[pixelIndex + 0];
const b = io.pixels[pixelIndex + 0];
}
}
}