Snapshot.rotate

void rotate(float angle)

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].

Parameters

anglethe rotation angle, in degrees (clockwise)