1
Help us understand the problem. What are the problem?

More than 3 years have passed since last update.

posted at

Processingで画像を表示する

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

  1. You can follow users and tags
  2. you can stock useful information
  3. You can make editorial suggestions for articles
What you can do with signing up
1
Help us understand the problem. What are the problem?