anchor(o: Anchor | Vec2): AnchorComp
Anchor point for render (default "topleft").// set anchor to "center" so it'll rotate from center add([ rect(40, 10), rotate(45), anchor("center"), ])
// set anchor to "center" so it'll rotate from center add([ rect(40, 10), rotate(45), anchor("center"), ])
Assets
Components
Component Types
Input
Events
Info
Math
Misc
Draw
Level
Plugins
Button Bindings