Hi Guys,
thanks for all your answers. My thoughts go more to very short solutions which are easy to apply to different circumstances. Maybe I will write a plugin based on the "shaking code" provided which accepts a bunch of parameters (amplitude of x,y,z,rotation, scaleX, scaleY,... and duration of a shake).
I use canvas and want to shake bitmaps after a "hit" in a game.
stot