We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi, I have a lot (more than 10) different processing programs on my web-page. All these programs are embedded in processing.js. After entering my page all programms are running simultaniously. So the execution of code is slowed down. I am looking for a mode to stop running when the programs loose focus. In processing2 there was the mode "JavaScript" available, whose Playback Settings allowed "pauseOnBlur". Does processing.js have any similiar feature?
Answers
http://ProcessingJS.org/reference/pauseOnBlur/
https://forum.Processing.org/two/discussions/tagged/pauseonblur
Thanks for answering fast. I'm afraid your answer does not help since I embedd my sketches in processing.min.js like
<!DOCTYPE html> Processing.js
The usage of the directive recommended in my KEPLERsLaw.pde couses no change.
In the processing.js reference I found for html use:
Can I use that for pauseOnBlur? If so what has directives.pde to contain?
how can I insert code in my comment?
how can I insert HTML-code in my text?
That was all I knew about it, sorry. :(