Function globals canvas api transform Transform setRotation
Set rotation (Optionally around a specified point instead of (0,0)) setRotation(rot) setRotation(rot, cx, cy) @note If using with rotation center different to (0,0) do not use #setTranslation as it would interfere with the rotation.