View Source Scenic.Primitive.Transform.Pin (Scenic v0.11.2)
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
Functions
Callback implementation for Scenic.Primitive.Transform.validate/1
.
Link to this section Functions
Callback implementation for Scenic.Primitive.Transform.validate/1
.