art.canvas.draw_line
Draw a straight line on a pixel-art canvas using start and end coordinates with a hex color. Solves precise line drawing with the Bresenham algorithm for consistent 2D RPG art.
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 |