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()を使う。
Go to list of users who liked
More than 5 years have passed since last update.
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()を使う。
Register as a new user and use Qiita more conveniently
Go to list of users who liked