processing/processing4

PGraphics saves fully transparent instead of red (P2D)

Open

#737 建立於 2023年6月30日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)Java (176 fork)auto 404
help wantedopengl

倉庫指標

Star
 (439 star)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南