本程序通过使用 tint() 函数 修改图像的 alpha 值,将一张图像覆盖在另一张图像上。 在画布上左右移动光标可以改变图像的位置。 若要在本地运行这个示例, 你需要一个图像文件和一个正在运行的 本地服务器。
图像透明度: 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!