Created
December 18, 2010 23:35
-
-
Save miguelrios/746972 to your computer and use it in GitHub Desktop.
Transparent Background in Processing JS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//width and height are the dimensions of your processing canvas. | |
processing.setup = function() { | |
processing.size(width, height); | |
processing.loadPixels(); | |
for (var i = 0; i < processing.width*processing.height; i++){ | |
processing.pixels.setPixel(i,0); | |
} | |
processing.updatePixels(); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment