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

📄 pointillism.pde

📁 This is processing for java examples.
💻 PDE
字号:
/** * Pointillism * by Daniel Shiffman.  *  * Mouse horizontal location controls size of dots.  * Creates a simple pointillist effect using ellipses colored * according to pixels in an image.  */ PImage a;void setup(){  a = loadImage("eames.jpg");  size(200,200);  noStroke();  background(255);  smooth();}void draw(){   float pointillize = map(mouseX, 0, width, 2, 18);  int x = int(random(a.width));  int y = int(random(a.height));  color pix = a.get(x, y);  fill(pix, 126);  ellipse(x, y, pointillize, pointillize);}

⌨️ 快捷键说明

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