Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float h, w, theta;
- int num = 20;
- void setup() {
- size(500, 500);
- ellipseMode(CORNER);
- noStroke();
- fill(#202020,10);
- background(255);
- }
- void draw() {
- w = 50;
- h = map(sin(theta), -1, 1, w, 200);
- translate(width/2, height/2);
- for (int i=0; i<num; i++) {
- pushMatrix();
- rotate((TWO_PI/num)*i);
- ellipse(-w/2, 0, w, h);
- popMatrix();
- }
- filter(DILATE);
- theta += 0.0523;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement