Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void createThing(float x, float y, float sz, float sz2) {
- y = map(t, t1, t2, 50, 450);
- x = 250; // + random(-5, 5);
- float temp = map(t, t1, t2, PI, TWO_PI+PI);
- sz = map(cos(temp), -1, 1, 100, 300);
- sz2 = map(cos(temp), -1, 1, 0, sz*.75);
- fill(0);
- float corner= map(cos(temp), -1, 1, sz, 0);
- float corner2= map(cos(temp), -1, 1, sz2, 0);
- ellipse(x, y, sz, sz);
- blendMode(EXCLUSION);
- fill(255);
- float x2 = map(t, t1, t2, -sz/2, width+sz/2);
- ellipse(x2, y, sz, sz);
- float x3 = map(t, t1, t2, width+sz/2, -sz/2);
- ellipse(x3, y, sz, sz);
- blendMode(BLEND);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement