art.canvas.draw_line
Draw a straight line between two points on a pixel-art canvas by entering start and end coordinates and a hex color, ensuring consistent style for 2D RPG game assets.
Instructions
Draw a line between two points using Bresenham algorithm.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x0 | Yes | Start X coordinate | |
| x1 | Yes | End X coordinate | |
| y0 | Yes | Start Y coordinate | |
| y1 | Yes | End Y coordinate | |
| color | Yes | Line color as hex string | |
| session_id | Yes | Canvas session ID |