• fullscreen
  • Gillespie_HelloWorld_Sketch1.pde
  • //void setup provides an original screen for setup
    void setup() {
    
    size(1000,400);
    colorMode(RGB);
    background(69,138,194);
    }
    
    //void draw initiates the repetition of commands
    void draw() {
    
    
    background(69,138,194);
    //background function within draw recreates the background color
    //background(69,138,194);
    strokeWeight(10);
    line(mouseX,mouseY,width/2,height/2);
    //line follows the coordinate of the mouse for the first point position
    
    noFill();
    ellipse(width/2,height/2,100,100);
    
    
    }
    
    
    
    
    

    code

    tweaks (0)

    license

    advertisement

    Sean Gillespie

    Gillespie_HelloWorld_Sketch1

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

    A line moves and interacts with the mouse.

    The use of setup and draw functions create the opportunity to avoid static representation.

    Comments should be self explanatory.

    You need to login/register to comment.