click and drag originally designed for use with a TUIO where the anchor point would be the second touch point. That's why this code is written to run in realtime.
Uploading images from the web:
If you uncomment everything that has webImg in it this sketch will dynamically load content from google maps. I have ideas about what is needed to build a lean google maps platform but openprocessing.org is sandboxing my code and my project is about data mapping so that is where I am devoting the bulk of my time.
Feel free to use this code but make sure to include the comments for code navigation.
This sketch is not reflective of what will happen is you use real pendulae. That is way cooler. Some things are just too hard to simulate accurately. But hey I discovered some patterns i've never seen before.
It was fun to build this with someone. Honeing the motion was also a bit tricky. It helps to be able to talk with someone who is really knowledgeable on the craft of coding lots of boundry glitches that needed to be cleaned up. Gave it actualy colision-reflection as opposed to cheating with inverting x,y motions. Play around with it see if you can guess the pattern consistantly. -bb