1. NodeBox 1
    1. Homepage
    2. NodeBox 3Node-based app for generative design and data visualization
    3. NodeBox OpenGLHardware-accelerated cross-platform graphics library
    4. NodeBox 1Generate 2D visuals using Python code (Mac OS X only)
  2. Gallery
  3. Documentation
  4. Forum
  5. Blog

Exporting transparent PNG

Posted by James Pearce on Sep 19, 2009

Is there anyway to make sure the image background is transparent in an exported PNG?

I would also like the drop shadows (from the color libary) to be alpha blended against the transparent background (so that it can appear on a variety of solid backgrounds in a web page without nasty anti-alias defects).

I start the code with size() to mandate the image size... should I have specified background transparency then?


 
Posted by Josh Caswell on Sep 23, 2009

Did you try:

background(None)
background() reference