We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
New User (Read 579 times)
New User
Jan 6th, 2006, 6:28pm
 
Hi...guys.

I just started using Processing...I dont have a heavy coding background...but Im getting on with it. Now can any of u help me on writing a program as to trace the movement of the mouse. That is to draw a line along the path of the mouse but without the mouse button being pressed...

Directions on how to go-on would be appreciated...
Re: New User
Reply #1 - Jan 7th, 2006, 2:47am
 
http://processing.org/learning/examples/continuouslines.html

If you want to eliminate the need to click to draw, just eliminate the 'if' statement but leave the 'line' statement.

stroke(255);
line(mouseX, mouseY, pmouseX, pmouseY);

Page Index Toggle Pages: 1