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