
Starting with an example reviewed in class, in this visualization I experiment with the distance between texts and their density to try to generate a more precise visualization of the work of Mexican muralist José Clemente Orozco.
void setup(){
size(990,556);
PImage img = loadImage("josé_clemente_orozco.jpg");
img.resize(990,556);
background(255);
fill(0);
textSize(12);
int size=3;
for(int x=0;x<width;x=x+size){
for(int y=0;y<height; y=y+size){
color c = img.get(x,y);
float b = brightness(c);
if (b<40){
text("O", x, y);
}else if(b<70){
text("R", x, y);
}else if(b<100){
text("O", x, y);
}else if(b<130){
text("Z", x, y);
}else if(b<150){
text("C", x, y);
}else if(b<190){
text("O", x, y);
}
}
}
}
