Advertisement
xeromino

quarter

Jan 8th, 2014
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.39 KB | None | 0 0
  1. float theta, var;
  2.  
  3. void setup() {
  4.   size(500, 500);
  5. }
  6.  
  7.  
  8. void draw() {
  9.   background(#202020);
  10.   noStroke();
  11.   fill(#777777);
  12.   arc(width/2, height/2, 200, 200, PI*1, PI*3);
  13.   fill(#FCD300);
  14.   arc(width/2, height/2, 200, 200, PI, PI*var);
  15.   var = map(sin(theta), -1, 1, 1.01, 1.51);
  16.   theta += 0.0523;
  17.  
  18.   if (frameCount%4==0 && frameCount<121) saveFrame("image-###.gif");
  19.  
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement