Processing is very powerful language to create graphical stuff like animations with very few lines of code.
Here are some samples:
Balls3 Circles