Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

Re : procceing graph (im a newbie)

$
0
0
would that help ?
  1. int i;
    int delta;
    void setup()

    {

      size(500, 500);
      delta = mouseY;
      background(200);
    }

    void draw()
    {
      if (delta != mouseY)
      {
        i++;
        if (i>width)
        {
          i=0;
          background(200);
        }
        delta = mouseY;
        strokeWeight(3);
        point(i, mouseY);
      }
    }


Viewing all articles
Browse latest Browse all 1768

Trending Articles