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
Mirroring Globs (Read 495 times)
Mirroring Globs
Apr 7th, 2009, 11:21am
 
Is there any way to flip the x co-ordinates of where the globs are displayed with JMyron?

I've flipped the cam image, but the globs don't because the globs are found before they are presented on screen.

The mirror code I'm using to flip the cam image is:

Code:
for(int i=1;i<width;i++){ //loop through all the pixels
   for (int j=1;j<height;j++){
   pixels[(m.width() - i - 1) + j * m.width()]= img[(i) + j * m.width()]; //draw each pixel to the screen
 }


Any help is greatly appreciated.
Page Index Toggle Pages: 1