Fun programming 143: Using PGraphics as layers in Processing from how to draw eyes animated Watch Video
Preview(s):
Gallery
Play Video: (Note: The default playback of the video is HD VERSION. If your browser is buffering the video slowly, please play the REGULAR MP4 VERSION or Open The Video below for better experience. Thank you!)
Description: By default all the Processing drawing functions draw immediately in your main display. What would happen if you wanted to draw something behind other objects? You would probably need something called PGraphics.nnSo far you have used always one PGraphics, the default one. So you probably did not even think it existed. But you can create more than one, which allows you to draw things on different virtual displays, and later draw those virtual displays on the main one.nnOne thing you can do with PG
Play Video: (Note: The default playback of the video is HD VERSION. If your browser is buffering the video slowly, please play the REGULAR MP4 VERSION or Open The Video below for better experience. Thank you!)