Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int num=80;
- long ns;
- void setup() {
- size(750, 540);
- noStroke();
- mouseReleased();
- }
- void draw() {
- noiseSeed(ns);
- background(255);
- for (int i=0; i<num; i++) {
- float offSet = TWO_PI/num*i;
- pushMatrix();
- translate(width/2, height/2);
- rotate(offSet);
- fill(0, 150);
- float w = noise(sin(offSet)*2, cos(offSet)*3)*300;
- rect(0,50, w, 1);
- popMatrix();
- }
- fill(255);
- ellipse(width/2,height/2,103,103);
- }
- void mouseReleased() {
- ns = (long) random(100000);
- }
- void keyPressed() {
- save(ns+".gif");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement