Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PImage myImage;
- color col;
- float sw, br, incr, sz;
- int x, y;
- void setup() {
- background(255);
- ellipseMode(CORNER);
- myImage = loadImage("http://media-cache-ak0.pinimg.com/736x/58/bd/50/58bd50274b02cfd44261b840ad20299b.jpg");
- size(myImage.width, myImage.height);
- myImage.loadPixels();
- incr = 5;
- strokeCap(SQUARE);
- sz = width;
- noStroke();
- }
- void draw() {
- while (x<width) {
- fill(myImage.get(x, y),200);
- ellipse(x, y, sz, sz);
- x += 5;
- y += 4;
- sz *=0.95;
- }
- }
- void keyPressed() {
- save(random(123)+".png");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement