size(64,64);
PGraphics g = createGraphics(64, 64, JAVA2D);
g.beginDraw();
g.noStroke();
g.background(255,255,255,0);
g.ellipse(32, 32, 64, 64);
//g.rect(0, 0, 64, 64);
g.endDraw();
image(g, 0, 0);
g.save("circle.png");
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme