In Processing.js, I’d like to have circles that represent nodes, with lines connecting linked nodes. I’d like those connected circles to naturally pull toward each other with a kind of elasticity of the lines, and the circles to bounce against each other when they touch. Any ideas on how to do this?
In Processing.js, I’d like to have circles that represent nodes, with lines connecting linked
Share
I think this sample might get you going in the right direction:
It has the circles, the lines, and the bouncing.