Skip to content

Instantly share code, notes, and snippets.

@miguelrios
Created December 18, 2010 23:35
Show Gist options
  • Save miguelrios/746972 to your computer and use it in GitHub Desktop.
Save miguelrios/746972 to your computer and use it in GitHub Desktop.
Transparent Background in Processing JS
//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