Theoretically, how would you get two separate sketches to work together on the same website.
For example, I am looking at having two sketches, one in 2d processing as a control system and the second in 3d processing as a sketch getting controlled.
How would I get them to share information, variables, etc and would latency be too much of an issue?
Indeed it’s 1 sketch using a GUI library. I wanted to know 1st if such setup’d be enough for you.
But if you really wanna have 1 p5js sketch controlling another 1, you can create a global object w/ some properties as a way for both sketches to communicate w/ each other.
However, only 1 of those sketches can use the global mode approach.
The other 1 needs to use the instance mode approach: