Blur and Alpha
in
Programming Questions
•
2 years ago
i am trying to track a video with a shape, and for the aesthetics i would like the shape to leave a trail behind and blur/fade away; however if i draw a transparent background and apply the blur filter the framerate drops dramatically, is there a bitmap matrix equivalent to those effects in Processing?
void draw() {
noStroke();
fill(0,0,0,1);
rect(0,0,width, height);
// Let's draw the raw location
PVector v1 = tracker.getPos();
fill(255);
ellipse(v1.x,v1.y,20,20);
if (!imgBg){filter(BLUR,0.65);}
/* pg = createGraphics(35, 35, P3D);
pg.beginDraw();
pg.stroke(255);
fill(5,200,200);
ellipse(v1.x-5,v1.y -20,15,15);
pg.strokeWeight(6);
if (!imgBg){filter(BLUR,0.65);}
pg.endDraw();
*/
1