We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
Blurring... (Read 285 times)
Blurring...
Apr 4th, 2007, 8:42pm
 
I have been using this code to make a sort trail that follows my mouse. The only thing is I want to have it blurred so it looks more like a multi-coloured light trail.


 for(int i=0; i<num; i++) {
   
   fill (random(255), random(255), random(255));
   fill (alpha(255), alpha(255), alpha(255));
   fill((random(100, 255) / num) * i, (random(100, 255) / num) * i, (random(100, 255) / num) * i, (255 / num) * i);
   ellipse(mx[i], my[i], i/2, i/2);
   noStroke();
 
   }

I attempted to use the blur filter but it applied it to the rest of the screen and slowed it all down. Any ideas?

Thanks
Page Index Toggle Pages: 1