• fullscreen
  • newLines.pde
  • void setup() {
      size(700, 500);
      background(255);
      frameRate(8);
      smooth();
    }
    
    void draw() {
      float l = random(10,50);
      stroke(0);
      strokeWeight(random(.5,5));
      if(mousePressed) {
        line(mouseX, mouseY, pmouseX, pmouseY);
        line(mouseX, mouseY+ l,pmouseX,pmouseY+l);
      }
     // saveFrame("line-######.jpg");
    }
    
    

    code

    tweaks (0)

    about this sketch

    This sketch is running in HTML5 using Processingjs.

    license

    advertisement

    Justin Lincoln prof+

    newLines

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

    Line drawing in pairs with some randomness. Hold mouse down to draw.

    You need to login/register to comment.