Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float radius, angle;
- void setup() {
- size(500, 500);
- background(#202020);
- radius=width/4;
- }
- void draw() {
- noStroke();
- fill(0, 10);
- rect(0, 0, width, height);
- filter(ERODE);
- filter(BLUR, 0.6);
- float x = width/2 + cos(angle)*radius*.75;
- float y = height/2 + sin(angle)*radius*.75;
- fill(#AD7F99, 150);
- noStroke();
- ellipse(x, y, 10, 10);
- float sz=map(sin(angle), -1, 1, 20, 50);
- float x2 = x + cos(angle*1) *radius*.75;
- float y2 = y + sin(angle*3) *radius*.75;
- //stroke(0);
- fill(#EDDDC2, 150);
- ellipse(x2, y2, sz, sz);
- angle += 0.0523/2;
- //if (frameCount % 4 == 0 && frameCount > 120 && frameCount < 361) saveFrame("image-####.jpg");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement