• fullscreen
  • Pattern.pde
  • /**
     * Patterns. 
     * Move the cursor over the image to draw with a software tool 
     * which responds to the speed of the mouse. 
    void setup()
      size(1024, 768);
    void draw() 
      // Call the variableEllipse() method and send it the
      // parameters for the current mouse position
      // and the previous mouse position
      variableEllipse(mouseX, mouseY, pmouseX, pmouseY);
    // The simple method variableEllipse() was created specifically 
    // for this program. It calculates the speed of the mouse
    // and draws a small ellipse if the mouse is moving slowly
    // and draws a large ellipse if the mouse is moving quickly 
    void variableEllipse(int x, int y, int px, int py) 
      float speed = abs(x-px) + abs(y-py);
      ellipse(x, y, speed, speed);


    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

    Ace Ventura


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

    You need to login/register to comment.