Thomas was alone liquid effect

I was wondering how this liquid effect can be done in scripting:

The physic seems quite unrealistic but still very useful for physic based puzzle game.

Ps. any tought about the shader used to create the border ripple effects?

That just looks like transparent textures overlayed on top of each other. Nothing special used.