0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

P5.js 日本語リファレンス(noTint)

Last updated at Posted at 2020-06-12

このページでは[「P5.js 日本語リファレンス」] (https://qiita.com/bit0101/items/91818244dc26c767a0fe) の noTint 関数を説明します。

noTint()

説明文

画像を表示するための現在の塗りつぶしの値を削除し、元の色相の画像の表示に戻します。

構文

noTint()

例1

let img;
function preload() {
  img = loadImage('assets/mountain.jpg');
}

function setup() {
  createCanvas(500,500);
  
  // 現画像を表示します
  image(img, 0, 0);

  // 色合いを青にする
  tint(0, 153, 204); // blue
  image(img, 150, 100);
  
  // 色合いを無効にする
  noTint() ;
  image(img, 0, 300);
}

実行結果

著作権

p5.js was created by Lauren McCarthy and is developed by a community of collaborators, with support from the Processing Foundation and NYU ITP. Identity and graphic design by Jerel Johnson.

ライセンス

Creative Commons(CC BY-NC-SA 4.0) に従います。

0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?