Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void doStuff(float y) {
- y = map(t, t1, t2, 50, 450);
- float x = 250;
- float temp = map(t, t1, t2, PI, TWO_PI+PI);
- float sz = 100;
- float sz2= 0;
- fill(0);
- ellipse(x, y, sz, sz);
- blendMode(EXCLUSION);
- fill(255);
- if (temp<(TWO_PI+PI)/2) {
- float T = ((frameCount-1.0-inFrames)/(otherFrames/2)) % 1;
- sz2 = map( ease(T, 4.0, 2.0), 0, 1, 0, 300 );
- println(T);
- } else {
- float T = ((frameCount-1.0-inFrames-otherFrames/2)/(otherFrames/2)) % 1;
- sz2 = map( ease(T, 2.0, 4.0), 0, 1, 300, 0 );
- }
- ellipse(x, y, sz2, sz2);
- blendMode(BLEND);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement