Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float r = 0;
- void setup() {
- size(600, 600);
- background(255);
- smooth();
- }
- void draw() {
- stroke(0, random(0, 100));
- fill(random(50, 255), 0, 0);
- rotate(r);
- float circle_size = random(5, 20);
- ellipse( 2+r, 10, circle_size, circle_size);
- fill(random(50, 255), 0, random(50, 255));
- ellipse( 300 +r, 10, circle_size, circle_size);
- fill(random(50, 255), 0, 255);
- ellipse( 500 +r, 10, circle_size, circle_size);
- r = r + 0.1;
- }
- void keyPressed() {
- if (key == 's') {
- save("normal.png");
- exit();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement