Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PImage img;
- float angle, radius, theta;
- int frms = 20;
- void setup() {
- size(540, 540);
- //img = loadImage("http://emoji.ink/assets/160x160/407.png"); 407,483,193,189,257
- img = loadImage("http://emoji.ink/assets/160x160/483.png");
- background(0);
- }
- void draw() {
- background(0);
- radius = 0;
- angle =0;
- while (radius<width/1) {
- PImage tmp = img.copy();
- float x = width/2 + cos(angle+theta)*radius;
- float y = height/2 + sin(angle+theta)*radius;
- angle += 0.5 ;
- radius += 1;
- int rs = (int) map(radius, 0, width/2, 10, 50);
- tmp.resize(rs, rs);
- image(tmp, x, y);
- if (radius%200==0) filter(BLUR, 0.6);
- }
- theta += TWO_PI/frms;
- filter(GRAY);
- //if (frameCount<=frms) saveFrame("image-###.gif");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement