draw_line_at
Draw a line on a specified layer and frame in an Aseprite file, with options for color, thickness, and automatic layer creation.
Instructions
Draw a line 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. x1 (int): The x coordinate of the first point of the line. y1 (int): The y coordinate of the first point of the line. x2 (int): The x coordinate of the second point of the line. y2 (int): The y coordinate of the second point of the line. color (str, optional): The color to draw the line with. Defaults to "#000000". thickness (int, optional): The thickness of the line. Defaults to 1. create_if_missing (bool, optional): Whether to create the layer if it doesn't exist. Defaults to True.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | ||
| x2 | Yes | ||
| y1 | Yes | ||
| y2 | Yes | ||
| color | No | #000000 | |
| filename | Yes | ||
| thickness | No | ||
| layer_name | Yes | ||
| frame_index | Yes | ||
| create_if_missing | No |