Advertisement
xeromino

pasdedeux

Feb 25th, 2014
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.70 KB | None | 0 0
  1. float radius, angle;
  2.  
  3. void setup() {
  4.   size(500, 500);
  5.   background(#202020);
  6.   radius=width/4;
  7. }
  8.  
  9. void draw() {
  10.   noStroke();
  11.   fill(0, 10);
  12.   rect(0, 0, width, height);
  13.  
  14.   filter(ERODE);
  15.   filter(BLUR, 0.6);
  16.  
  17.   float x = width/2 + cos(angle)*radius*.75;
  18.   float y = height/2 + sin(angle)*radius*.75;
  19.   fill(#AD7F99, 150);
  20.   noStroke();
  21.   ellipse(x, y, 10, 10);
  22.  
  23.   float sz=map(sin(angle), -1, 1, 20, 50);
  24.   float x2 = x + cos(angle*1) *radius*.75;
  25.   float y2 = y + sin(angle*3) *radius*.75;
  26.   //stroke(0);
  27.   fill(#EDDDC2, 150);
  28.   ellipse(x2, y2, sz, sz);
  29.  
  30.   angle += 0.0523/2;
  31.  
  32.   //if (frameCount % 4 == 0 && frameCount > 120 && frameCount < 361) saveFrame("image-####.jpg");
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement