Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. float x = 30;
  2. float y = 30;
  3.  
  4. void setup() {
  5. size(800, 800);
  6. frameRate(24);
  7. }
  8.  
  9. void draw(){
  10. translate(width / 2, height * 1 / 2);
  11. x += width /20;
  12. float cnt = 20;
  13. fill(#888888);
  14. noStroke();
  15. for (int i = 0; i < cnt; i++) {
  16. ellipse(100, 200, x, y);
  17. rotate(4 * PI / cnt);
  18.  
  19. if(x >= width ) {
  20. x=0;
  21. }
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement