• fullscreen
  • example_Loop.pde
  • /**
     * Loop. 
     * The loop() function causes draw() to execute
     * continuously. If noLoop is called in setup()
     * the draw() is only executed once. In this example
     * click the mouse to execute loop(), which will
     * cause the draw() the execute continuously. 
    // The statements in the setup() function 
    // execute once when the program begins
    void setup() 
      size(300, 300);  // Size should be the first statement
    float y = 100;
    // The statements in draw() are run until the 
    // program is stopped. Each statement is run in 
    // sequence and after the last line is read, the first 
    // line is run again.
    void draw() 
      stroke( random(255), random(255), random(255), 200 ); 
      line(0, random (0,300), width, y);  
      line(0, y, width, random (20,200)); 
    void mousePressed() 


    tweaks (0)

    about this sketch

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



    Report Sketch

    Report for inappropriate content

    Please provide details if possible:

    Your have successfully reported the sketch. Thank you very much for helping to keep OpenProcessing clean and tidy :)

    Make a Copyright Infringement claim

    Carina Schweitzer

    loop example

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

    press mouse to start

    You need to login/register to comment.