• fullscreen
  • LinesForLoop.pde
  • void setup()
    {
    size(200,200);
    }
    
    void draw()
    {
    background(255);
    
    int y = 0;       
    int spacing = 8; 
    int linelength = 200;     
    
    
    float xmouse = mouseX;
    float ymouse = mouseY;
    
    float strokesize = xmouse/20;
    float fillhue = ymouse;
    for (int x = 0; x <= 200; x += spacing) { 
      line(x,y,x,y + linelength);
      strokeCap(ROUND);
      strokeWeight(strokesize);
      stroke(fillhue);
    }
    }
    
    
    

    code

    tweaks (0)

    about this sketch

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

    license

    advertisement

    Andrew Goldstein

    LinesForLoop

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

    You need to login/register to comment.