We are about to switch to a new forum software. Until then we have removed the registration on this forum.
For example: mouse moves once, line appears, holds position for 10 seconds, disappears.
You want to write a basic timer.
First consult a few of the many example sketches explaining timers:
https://forum.processing.org/two/search?Search=timer
Then if you have a specific sketch you need help with, post the code you have so far to this thread to get more specific advice.
https://Forum.Processing.org/two/discussion/23846/time-delay-in-python-mode#Item_11
http://Bl.ocks.org/GoSubRoutine/1a0d21828319cf18fecf44101764bd60
Answers
You want to write a basic timer.
First consult a few of the many example sketches explaining timers:
https://forum.processing.org/two/search?Search=timer
Then if you have a specific sketch you need help with, post the code you have so far to this thread to get more specific advice.
https://Forum.Processing.org/two/discussion/23846/time-delay-in-python-mode#Item_11
http://Bl.ocks.org/GoSubRoutine/1a0d21828319cf18fecf44101764bd60