bmpNeedle.Initialize(File.DirAssets, "needle.png")
panNeedle.Initialize("")
panNeedle.setBackgroundimage(bmpNeedle)
...
Rotation.InitializeRotateCenter("Animation", 0, 0, panNeedle) 'Initialize the Animation
Rotation.Duration = 20000
'and later in the change direction event or in the timer:
'where t is the angle
Rotation.InitializeRotateCenter("Animation", t, t, panNeedle)
Rotation.Duration = 20000
Rotation.Start(panNeedle)