実例 画像の透明度

画像の透明度

このプログラムは、画像のアルファ値を変更することによって ひとつの画像を別の画像の上に重ねます。 tint() 関数を使用します。キャンバス上でカーソルを左右に動かすことで 画像の位置を変更できます。この例をローカルで実行するには、 画像ファイルと稼働中の ローカルサーバーが必要です。

Creative Commons BY-NC-SA license badge

画像の透明度: Revised by Kasey Lichtlyter. Edited and maintained by p5.js Contributors and Processing Foundation. Licensed under CC BY-NC-SA 4.0.

You can find the code history of these examples here: 2023 code, pre-2023 code. You can suggest improvements by contributing to the current website!


関連する実例