rotate

fun rotate(angle: Number, cx: Number? = null, cy: Number? = null): String

Creates a rotate transform string.

The rotate transform rotates an element by the specified angle, optionally around a given center point. This helper can be used directly as a transform attribute value or combined with other transform helpers via transforms(...).

Return

The rotate transform string.

Parameters

angle

The rotation angle in degrees.

cx

The x-coordinate of the rotation center (optional).

cy

The y-coordinate of the rotation center (optional).