FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Topics & Contributions
   Tools
(Moderator: REAS)
   UberPixels
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: UberPixels  (Read 498 times)
Jerronimo

WWW
UberPixels
« on: Sep 8th, 2003, 2:35am »

I just finished up the first version of a class that draws uberpixels.  I'm not sure how useful it will be to others, but I figured I'd make it available to you all anyway.  (I have two sketches I want to use it for...)
 
http://www.cis.rit.edu/~sdlpci/Software/p5/scaleBloxDemo
 
Change 'useVideo' to "true" to have it draw live video in uberpixels instead of just random colors.  I tried to give enough extra code in there to show what you can do with the class.
 
In a nutshell:
- clear the whole buffer to black
- get the color of a pixel
- set the color of a pixel
- boolean if a pixel is occupied
- find which pixel (x, y) the mouse is currently over
- size and position are settable when the class is instantiated
 
comments, criticisms, improvements, and all of that are most welcome.  
 
Pages: 1 

« Previous topic | Next topic »