spring effect in Python

Riccardo Lemmi riccardo at reflab.it
Fri Oct 30 10:22:28 EDT 2009


pochis40 wrote:

> I'm trying to write in Python something similar to this:
> (Java)
> http://java.sun.com/applets/jdk/1.4/demo/applets/GraphLayout/example1.html
> or these:
> (Proce55ing)
> http://www.cricketschirping.com/processing/ExportAtlas/
> or
>
http://www.cricketschirping.com/weblog/2005/12/11/force-directed-graph-layout-with-proce55ing/
> or
>
http://www.cricketschirping.com/weblog/2007/02/26/force-directed-graph-layout-with-processing-take-2/
> 
> I've problem to find something that give that physical effect (like a
> spring).
> 
> Any idea?

For the physics engine you can try these libraries:
  http://code.google.com/p/pybox2d
  http://code.google.com/p/pymunk/

-- 
Riccardo Lemmi




More information about the Python-list mailing list