Skip to content

PGraphics saves fully transparent instead of red (P2D) #737

Open
@processing-bot

Description

@processing-bot

Created by: clankill3r

Processing 4.2, OSX 10.15.7

void setup() {
  size(600, 600, P2D);
  PGraphics pg = createGraphics(64, 64, P2D);
  pg.beginDraw();
  pg.background(255, 0, 0);
  pg.endDraw();

  image(pg, 0, 0);

  pg.save("bug.png");
}

It should save a red image, but it's fully transparent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions