Processing Forum
PImage laa;
void setup () {
size (344,400);
laa = loadImage("xyz.jpg");
noLoop();
}
void draw(){
image(laa ,0 , 0);
for(int x=0; x<344; x++){
for(int y=0; y<400; y++){
float mitte = blue(get(x,y));
float rechts = blue(get(x+1,y));
float links = blue(get(x-1,y));
float oben = blue(get(x,y+1));
float unten = blue(get(x,y-1));
float mw = (oben+unten+rechts+links+mitte)/5;
color i = get(x,y);
float r = red(i);
float g = green(i);
float b = blue(i);
stroke(r,g,b);
point(x,y);
}
}
}