Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float theta, var, th, sw, max;
- void setup() {
- size(500, 500);
- strokeCap(SQUARE);
- }
- void draw() {
- background(#202020);
- noStroke();
- fill(#777777);
- max = 90;
- sw = map(sin(theta), -1, 1, 30, max);
- arc(width/2, height/2, 200+max, 200+max, PI*1, PI*3);
- stroke(#FCD300);
- strokeWeight(sw);
- noFill();
- arc(width/2, height/2, 200+(max-sw), 200+(max-sw), PI*var, PI*(var+th));
- th = map(sin(theta), -1, 1, 0.1, 0.3);
- var = map(sin(theta), -1, 1, -0.1, 1);
- theta += 0.0523;
- if (frameCount%2==0 && frameCount<121) saveFrame("image-###.gif");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement