This program overlays one image over another by modifying the alpha value of the image with the tint() function. Move the cursor left and right across the canvas to change the image’s position. To run this example locally, you will need an image file and a running local server.
Image Transparency by p5.js Contributors and the Processing Foundation is licensed under CC BY-NC-SA 4.0.