rotate

inline fun DrawScope.rotate(degrees: Float, pivotX: Float = size.width / 2f, pivotY: Float = size.height / 2f, block: DrawScope.() -> Unit)

Rotates the drawing space by degrees around pivot (pivotX, pivotY) for the duration of block.