working with pixels was something that I’d done quite a bit of in various apps like photoshop. I enjoyed creating a filter to manipulate pixels based on rgb values and simplify the output to create something both streamlined and re-interpreted.
PImage serialmom;
void setup() {
serialmom = loadImage("serial-mom-lead.jpg");
size(1000,684);
//image(serialmom,0,0);
noStroke();
background(255);
ellipseMode(CENTER);
for(int i =0; i<serialmom.width; i=i+30) {
for (int j=0; j<serialmom.height; j+=30){
int p=j*serialmom.width + i;
color c=serialmom.pixels[p];
float r=red(c)+20;
float g=green(c)+20;
float b=blue(c)-20;
float brightness = 0.21*r+0.72*g+0.07*b;
fill(r,g,b);
ellipse(i,j,30,30);
}
}
}