search
LoginSignup
8

More than 5 years have passed since last update.

posted at

updated at

processingで透過画像を作る

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");

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
What you can do with signing up
8