実例 アルファマスク

アルファマスク

mask() メソッドを使用すると、画像のマスクを作成して、画像の異なる部分の透明度を指定できます。この例をローカルで実行するには、2つの画像ファイルと実行中の ローカルサーバーが必要です。

Creative Commons BY-NC-SA license badge

アルファマスク: Revised by Malay Vasa, 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!


関連する実例