Scenic.Primitive.Transform.Pin (Scenic v0.11.0-beta.0) View Source

Set the pin for rotate and scale transforms.

When rotating or scaling, you need to set the point that doesn't move. This is the pin. If you don't set one, Scenic will try to use a sensible default for whatever primitive you are transforming.

Use the :pin option to set it explicitly

{pin_x, pin_y}

Example:

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

Link to this section Summary

Link to this section Functions