Elasticity shapes with SVG

This is a small demo (using only SVG and Javascript, no Flash around) about elasticity (a really big simplified version).
You can create a shape, and then animate it... the shape moves its vertices to find a calm form (which is having all the sides with the same length).
For more fun, try some convex and concave shapes.

1- Mark some points into the dotted space, as the shape perimeter (like 6 points clockwise).
2- Then click here to paint the shape
3- Finally click here to ANIMATE

This code is free, but if you want to use it, please share with me your further researches ;-)