fun Graphics.drawAnimation(x: Int, y: Int, animation: Animation): Unit
Draws current frame from animation.
If animation is stopped this method does nothing.
fun Graphics.drawAnimation(x: Int, y: Int, animation: Animation, angle: Double, anchorx: Int = 0, anchory: Int = 0): Unit
Draws rotated animation.
Draws an animation rotated on angle measured in radians. angle=Math.PI will be a half of the full circle. The animation rotates coordinates around an anchor point. You can set the anchor point using anchorx and anchory. By default the anchor point is 0,0, meaning the animation rotates around its top left corner.