Transform.rotate

Rotates next angle degrees in 2D - or in 3D-speak, around the Z axis. The rotation happens around the origin point of (0, 0).

class Transform
rotate
(
float angle
)

Parameters

angle float

the rotation angle, in degrees (clockwise)

Return Value

Type: gsk.transform.Transform

The new transform