⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 transparency.pde

📁 This is processing for java examples.
💻 PDE
字号:
/** * Transparency.  *  * Move the pointer left and right across the image to change * its position. This program overlays one image over another  * by modifying the alpha value of the image with the tint() function.  */PImage a, b;float offset;void setup() {  size(200, 200);  a = loadImage("construct.jpg");  // Load an image into the program   b = loadImage("wash.jpg");   // Load an image into the program   frameRate(60);}void draw() {   image(a, 0, 0);  float offsetTarget = map(mouseX, 0, width, -b.width/2 - width/2, 0);  offset += (offsetTarget-offset)*0.05;   tint(255, 153);  image(b, offset, 20);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -