Function
anchor
(o: Anchor | Vec2): AnchorCompAnchor point for render (default "topleft").
param o- The anchor point to set.
// set anchor to "center" so it'll rotate from center
add([
rect(40, 10),
rotate(45),
anchor("center"),
])returns The anchor comp.
since v2000.0
group Components