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

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

Shortcut

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

Example:

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

Link to this section Summary

Link to this section Functions