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.
IndexProgramming Questions & HelpSyntax Questions › modifying the SlitScan example
Page Index Toggle Pages: 1
modifying the SlitScan example (Read 180 times)
modifying the SlitScan example
Oct 28th, 2008, 5:35am
 
I have been deconstructing the SlitScan example from the video capture examples to see if the pixels will move vertically instead of horizontally. I can't seem to figure it out... If anyone has any ideas please inform.

Thanks in advance!

I think the matter lies in this section:

   loadPixels();
   for (int y = 0; y < video.height; y++){
     int setPixelIndex = y*width + drawPositionX;
     int getPixelIndex = y*video.width  + videoSliceX;
     pixels[setPixelIndex] = video.pixels[getPixelIndex];
   }
   updatePixels();
Page Index Toggle Pages: 1