Snapshot.rotate

Rotates @snapshot's coordinate system by angle degrees in 2D space - or in 3D speak, rotates around the Z axis. The rotation happens around the origin point of (0, 0) in the snapshot's current coordinate system.

To rotate around axes other than the Z axis, use gsk.transform.Transform.rotate3d.

class Snapshot
void
rotate
(
float angle
)

Parameters

angle float

the rotation angle, in degrees (clockwise)