draw_polygon
Draw a polygon on a specific layer and frame in an Aseprite file. Supports optional fill, custom color, and automatic layer creation.
Instructions
Draw a polygon 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. points (List[Dict[str, int]]): The list of points to draw the polygon. color (str, optional): The color to draw the polygon with. Defaults to "#000000". fill (bool, optional): Whether to fill the polygon. 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 |
|---|---|---|---|
| fill | No | ||
| color | No | #000000 | |
| points | Yes | ||
| filename | Yes | ||
| layer_name | Yes | ||
| frame_index | Yes | ||
| create_if_missing | No |