Scenic.Primitive.Transform.Rotate (Scenic v0.10.3) View Source

Apply a rotation matrix.

Always rotates around the z-axis (coming out of the screen).

The value is given in radians.

Positive values rotate clockwise.

The rotation is pinned to the sensible default for each primitive, or to the :pin that you assign explicitly.

Example:

graph
|> text("Rotated!", rotate: 1.2)
|> text("Rotated!", rotate: 1.2, pin: {10, 20})

Shortcut

Rotation is common enough that you can use :r as a shortcut.

Example:

graph
|> text("Rotated!", r: 1.2)