Render PImage using P2D?

Hi @Aryszin,

By “render”, you mean saving an image to disk? or displaying with the P2D renderer?

I mean it’s as usual (same behavior with a PImage):

void setup() {
  size(500, 500, P2D);
  
  PGraphics pg = createGraphics(200, 200, P2D);
  pg.beginDraw();
  pg.background(255, 0, 0);
  pg.endDraw();
  
  image(pg, 0, 0);
}