LoginSignup
0
1

More than 5 years have passed since last update.

Processingで画像を表示する

Posted at
float RGB = 255;
float ALPHA = 100;

PImage image;

void setup(){
  size(50,50);
  image = loadImage("whiteBrush.png");
  background(0);

}

void draw(){
  imageMode(CENTER);
  tint(RGB,ALPHA);
  image(image,25,25);
}

・画像のときは、fill()の代わりに tint()を使う。

0
1
0

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
  3. You can use dark theme
What you can do with signing up
0
1