Skip to content

Instantly share code, notes, and snippets.

@ayseglass
Created May 6, 2016 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ayseglass/0fa77e0f575725095e59e01ba7ef3b76 to your computer and use it in GitHub Desktop.
Save ayseglass/0fa77e0f575725095e59e01ba7ef3b76 to your computer and use it in GitHub Desktop.
int a;
int b;
int c;
void setup() {
size(600, 600);
a = 30;
noFill();
//kalp şekli
smooth();
noStroke();
translate(100, 200);
scale(4.0);
fill(255, 0, 0);
beginShape();
vertex(50, 15);
bezierVertex(50, -5, 75, 5, 50, 45);
vertex(50, 15);
bezierVertex(50, -5, 25, 5, 50, 45);
endShape();
}
void draw() {
frameRate (4);
fill(96, 87, 112, 10);
// loop
for (int i = 0; i < 3; i++)
ellipse(300, 300, a*i, a*i);
a+=30;
fill(247, 196, 165, 10);
stroke(77, 72, 97);
for (int i = 0; i < 3; i++)
ellipse(300, 300, b*i, b*i);
b+=20;
fill(158, 118, 130, 10);
stroke(255, 255, 123);
for (int i = 0; i < 3; i++)
ellipse(300, 300, c*i, c*i);
c+=50;
if (c<300) {
c=0;
}
saveFrame("pic###.jpg");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment