set_rotate method

set_rotate

Sets the transform type to SVG_TRANSFORM_ROTATE, with parameter angle defining the rotation angle and parameters cx and cy defining the optional center of rotation.

def set_rotate(self, angle, cx, cy):
    ...
ParameterTypeDescription
anglefloatThe rotation angle.
cxfloatThe x coordinate of center of rotation.
cyfloatThe y coordinate of center of rotation.

Exceptions

ExceptionDescription
DOMExceptionCode DOMException.NO_MODIFICATION_ALLOWED_ERR.
Raised on an attempt to change the value of a read only attribute.

See Also