pixel_draw_line
Draw a straight line between two points on a pixel art canvas, with endpoints outside the canvas clipped. Supports color, thickness, transparency erasure, and returns the updated canvas plus optional preview image.
Instructions
Draw a straight line between two points on a canvas.
Endpoints may lie outside the canvas; the visible segment is drawn. Drawing 'transparent' erases. Returns JSON {"canvas", "line", "color"}; plus a rendered image when preview=true. On failure returns "Error: ...".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |