Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void setup() {
- size(1080, 720);
- background(0);
- }
- void draw() {
- stroke(255, 10);
- for (int i=0; i<10; i++) {
- float a = randomGaussian() * TWO_PI;
- float d = randomGaussian() * 200;
- float x = width + 200 + cos(a)*d;
- float y = 150 + sin(a)*d;
- pushMatrix();
- translate(x, y);
- rotate(90);
- line(0, 0, 700, 700);
- popMatrix();
- }
- }
- void keyPressed() {
- saveFrame("image-###.png");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement