PImage b;
void setup() { size(500,500); b = loadImage("12345.jpg"); image(b, 0, 0); }
void draw() {
}
void mouseClicked() { for (int x = 0; x < b.width;x++) { for (int y = 0; y < b.height;y++) { color c = get(x, y); float v1 = red(c); float v2 = green(c); float v3 = blue(c); color c1 = color(255-v1,255-v2,255-v3); set(x,y,c1); }