|
Author |
Topic: UberPixels (Read 498 times) |
|
Jerronimo
|
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.
|
|
|
|
|