Library globals

Function globals . canvas . api . transform . Transform . setRotation

View source

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.

Parameters

angle