We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I would like a function to run every n milliseconds, regardless of what else is going on in the program. Similar to an interrupt driven function in Arduino language. Is there any way to do that in processing?
Thanks,
Mike
Answers
Using "official" Processing API only we can't. But w/ Java bundled libraries, sure! :-bd
http://docs.Oracle.com/javase/8/docs/api/java/util/TimerTask.html
A simpler approach relying on thread("") + delay() to execute a task after a specified time continually:
http://Processing.org/reference/thread_.html