Advertisement
xeromino

collab5

Oct 20th, 2014
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.58 KB | None | 0 0
  1. void doStuff(float y) {
  2.   y = map(t, t1, t2, 50, 450);
  3.   float x = 250;
  4.   float temp = map(t, t1, t2, PI, TWO_PI+PI);
  5.   float sz = 100;
  6.   float sz2= 0;
  7.   fill(0);
  8.   ellipse(x, y, sz, sz);
  9.   blendMode(EXCLUSION);
  10.   fill(255);
  11.   if (temp<(TWO_PI+PI)/2) {
  12.     float T = ((frameCount-1.0-inFrames)/(otherFrames/2)) % 1;
  13.     sz2 = map( ease(T, 4.0, 2.0), 0, 1, 0, 300 );
  14.     println(T);
  15.   } else {
  16.     float T = ((frameCount-1.0-inFrames-otherFrames/2)/(otherFrames/2)) % 1;
  17.     sz2 = map( ease(T, 2.0, 4.0), 0, 1, 300, 0 );
  18.   }
  19.   ellipse(x, y, sz2, sz2);
  20.   blendMode(BLEND);
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement