How to do this ? (camera and filter)
in
Android Processing
•
8 months ago
Hi everyone, i have one question...i want to implement a particular code that i created with processing in java's language, and i want to create an application that add this effect to the photo that the camera's phone make....anyone can help me ? this is the code...
exit();
import processing.pdf.*;
PImage ZZXS; # FOR EXAMPLE
ZZXS = loadImage("ZZXS.jpg");
println(ZZXS.width);
println(ZZXS.height);
int multi = 12;
size(ZZXS.width*multi,ZZXS.height*multi,PDF,"ZZXS.pdf");
background(255);
for( int x = 0; x < ZZXS.width; x++) {
for( int y = 0; y < ZZXS.height; y++) {
color c = ZZXS.get(x,y);
// float dim = brightness(c);
float dim = 700-brightness (c);
strokeWeight(1);
//noStroke();
// stroke(0,random(255),0,100);
fill(c);
//rect (x*multi, y*multi,random(30),random(50));
//fill(0,random(255),0,5);
ellipse (x*multi, y*multi,1000,random(30));
noStroke();
ellipse (x*multi, y*multi,dim,dim);
rect (x*multi, y*multi,dim,(dim));
}
}
1