Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float theta;
- void setup() {
- size(500, 500);
- strokeCap(SQUARE);
- }
- void draw() {
- background(#DDCFA1);
- //background(#B6BF81);
- //background(#ffffff);
- noFill();
- stroke(235);
- float start = map(sin(theta), -1, 1, PI-radians(3), TAU+HALF_PI-radians(1));
- float sw = map(sin(theta), -1, 1, 80,30);
- strokeWeight(sw);
- arc(width/2, height/2, 300, 300, start, TAU+PI/2 );
- theta += 0.0523;
- if (frameCount % 2 == 0 && frameCount < 121) saveFrame("image-####.gif");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement