Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float x = 30;
- float y = 30;
- void setup() {
- size(800, 800);
- frameRate(24);
- }
- void draw(){
- translate(width / 2, height * 1 / 2);
- x += width /20;
- float cnt = 20;
- fill(#888888);
- noStroke();
- for (int i = 0; i < cnt; i++) {
- ellipse(100, 200, x, y);
- rotate(4 * PI / cnt);
- if(x >= width ) {
- x=0;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement