Advertisement
xeromino

ether

Jun 3rd, 2014
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.42 KB | None | 0 0
  1. float theta, radius = 200, max=40, min=20;
  2.  
  3. void setup() {
  4.   size(800, 600);
  5.   background(255);
  6.   rectMode(CENTER);
  7. }
  8.  
  9. void draw() {
  10.   float x = 400+cos(theta)*radius;
  11.   float y = 320+sin(theta)*radius;
  12.   float sz = map(sin(theta*3),-1,1,min,max);
  13.   fill(20,10);
  14.   stroke(220,150);
  15.   noStroke();
  16.   ellipse(x,y,sz,sz);
  17.   theta += .0523;
  18.   max += .5;
  19.   min += .1;
  20.   if (max>160) max = 160;
  21.   if (min>40) min = 40;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement