• fullscreen
  • Problem_set_loop.pde
  • // SIMONE ROTH // PS1_6 // SYMMETRY 
    
    size (400, 400);
    background (217, 240, 162);
    smooth();
    
    
    {
    {strokeWeight(2);  
    int i = 0;
    while (i < 10) {
      ellipse(width/2, height/2, i*10, i*20);
      i++;
      fill(172, 240, 2);
    }
    }
    }
    
    
    
    /////////////////////////////////////////////////////////
    
    
    
    // BOTTOM RIGHT
    
    {
    int y = 250;
    int x = 249;
    int spacing = 15;
    int len = 150;
    
    
    line (x, y, x, y+len);
    
    x = x + spacing;
    line(x, y, x, y+len);
    
    
    x = x + spacing;
    line(x, y, x, y+len);
    
    x = x + spacing;
    line(x, y, x, y+len);
    
    x = x + spacing;
    line(x, y, x, y+len);
    
    x = x + spacing;
    line(x, y, x, y+len);
    
    x = x + spacing;
    line(x, y, x, y+len);
    
    x = x + spacing;
    line(x, y, x, y+len);
    
    x = x + spacing;
    line(x, y, x, y+len);
    
    x = x + spacing;
    line(x, y, x, y+len);
    
    x = x + spacing;
    line(x, y, x, y+len);
    
    
    
    }
    
    ////////////////////////////////////////////
    
    
    // TOP RIGHT
    
    {
    int y = 0;
    int x = 249;
    int spacing = 15;
    int len = 150;
    
    line (x, y, x, y+len);
    
    x = x + spacing;
    line(x, y, x, y+len);
    
    x = x + spacing;
    line(x, y, x, y+len);
    
    x = x + spacing;
    line(x, y, x, y+len);
    
    x = x + spacing;
    line(x, y, x, y+len);
    
    x = x + spacing;
    line(x, y, x, y+len);
    
    x = x + spacing;
    line(x, y, x, y+len);
    
    x = x + spacing;
    line(x, y, x, y+len);
    
    x = x + spacing;
    line(x, y, x, y+len);
    
    x = x + spacing;
    line(x, y, x, y+len);
    
    x = x + spacing;
    line(x, y, x, y+len);
    
    
    }
    
    //////////////////////////////////////////////////////////////
    
    {
    int y = 250;
    int x = 0;
    int spacing = 15;
    int len = 150;
    
    line (x, y, x, y+len);
    
    x = x + spacing;
    line(x, y, x, y+len);
    
    x = x + spacing;
    line(x, y, x, y+len);
    
    x = x + spacing;
    line(x, y, x, y+len);
    
    x = x + spacing;
    line(x, y, x, y+len);
    
    x = x + spacing;
    line(x, y, x, y+len);
    
    x = x + spacing;
    line(x, y, x, y+len);
    
    x = x + spacing;
    line(x, y, x, y+len);
    
    x = x + spacing;
    line(x, y, x, y+len);
    
    x = x + spacing;
    line(x, y, x, y+len);
    
    x = x + spacing;
    line(x, y, x, y+len);
    
    }
    
    
    
    
    
    ///////////////////////////////////////////////////////
    
    
    
    ///////////
    
    // TOP LEFT
    
    {
      int y = 0;
    int x = 0;
    int spacing = 15;
    int len = 150;
    
    line (x, y, x, y+len);
    
    x = x + spacing;
    line(x, y, x, y+len);
    
    x = x + spacing;
    line(x, y, x, y+len);
    
    x = x + spacing;
    line(x, y, x, y+len);
    
    x = x + spacing;
    line(x, y, x, y+len);
    
    x = x + spacing;
    line(x, y, x, y+len);
    
    x = x + spacing;
    line(x, y, x, y+len);
    
    x = x + spacing;
    line(x, y, x, y+len);
    
    x = x + spacing;
    line(x, y, x, y+len);
    
    x = x + spacing;
    line(x, y, x, y+len);
    
    x = x + spacing;
    line(x, y, x, y+len);
    
    
    }
    
    

    code

    tweaks (0)

    about this sketch

    This sketch is running as Java applet, exported from Processing.

    license

    advertisement

    Simone Roth

    ps1_6

    Add to Faves Me Likey@!
    You must login/register to add this sketch to your favorites.

    You need to login/register to comment.