draw_rectangle_at
Draw a rectangle on a specific layer and frame in an Aseprite file, with optional fill and custom color.
Instructions
Draw a rectangle on a specific layer/frame.
Args: filename (str): The path to the Aseprite file. layer_name (str): The name of the layer to draw on. frame_index (int): The index of the frame to draw on. x (int): The x coordinate of the top-left corner of the rectangle. y (int): The y coordinate of the top-left corner of the rectangle. width (int): The width of the rectangle. height (int): The height of the rectangle. color (str, optional): The color to draw the rectangle with. Defaults to "#000000". fill (bool, optional): Whether to fill the rectangle. Defaults to False. create_if_missing (bool, optional): Whether to create the layer if it doesn't exist. Defaults to True.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| fill | No | ||
| color | No | #000000 | |
| width | Yes | ||
| height | Yes | ||
| filename | Yes | ||
| layer_name | Yes | ||
| frame_index | Yes | ||
| create_if_missing | No |