?? pointillism.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 + -