PhysGL is an open-source, 3D graphics scripting langauge and programming environment. It works right in your WebGL-enabled browser and allows you to easily experiment with 3D graphics, drawing and animation. It has been used to teach beginning programming, mathematics, physics, and art in the context of computer graphics and animation.

We started writing a (free) book about using PhysGL to study physics.

Here are some examples: