resize_canvas
Change a sprite's canvas size without scaling artwork, adding or trimming space around existing pixels; choose top-left or center anchor.
Instructions
Resize the canvas WITHOUT scaling the artwork (adds or trims space).
anchor controls where existing content sits in the new canvas:
"top_left" (default) or "center". The new canvas is subject to the same
dimension/area caps as `create_sprite`.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | ||
| anchor | No | Default: "top_left". | top_left |
| height | Yes | ||
| filename | Yes |