add_asset
Add an image layer to a card. src is an image URL, such as one from upload_image or list_library. Pass spriteCoordinate to crop one pose of a sprite sheet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Layer center, in percent of the card width from the card center. 50 is the right edge. | |
| y | No | Layer center, in percent of the card height from the card center. 50 is the bottom edge. | |
| src | Yes | ||
| width | No | CSS pixels on the 500px-tall card. | |
| height | No | CSS pixels on the 500px-tall card. | |
| rotation | No | Degrees, clockwise. | |
| screenshotId | Yes | ||
| spriteCoordinate | No | Crop rectangle on the source image, in source pixels. Use a pose from list_library. |