We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hallo everyone, I m working on project, where I created 3 sketchs, and I want them to run every couple of minutes randomly. could frameRate() or/and noLoop(), redraw() and loop() work in this case? If yes how do I use them correctly? Thanks in advance! :)
PS: I m using Kinect for xbox one, the awesome Processing.3 and KinectPV2.
Answers
Combine them all into one sketch that switches between them randomly after some amount of time.
Combining multiple sketches into one sketch is definitely the easiest solution.
This sounds like a good approach for you because you don't have very many sketches and your sketches share many things (like KinectPV2). Really you could think of this as a single sketch with three "modes".
There are other approaches to combining sketches that work better if you have a large number of sketches, and/or if your multiple sketches are very different from one another -- different renderers or screen modes, different (potentially incompatible) libraries, etc. Then you can use either:
Here are some previous discussions on these options: