would that help ?
- 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);
}
}