rotate

open fun rotate(degrees: Float, pivotX: Float, pivotY: Float)

Rotates all subsequent drawing by degrees (clockwise, in the top-left coordinate space) around the pivot point. Effective until the next restoreState — always wrap in saveState / restoreState pairs, which is what the renderer does for rotated containers.