draw_line
Draw a line between two pixel coordinates using Bresenham's algorithm, adding a colored line to a canvas for pixel-art creation.
Instructions
Draw a line between two points using Bresenham's algorithm.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | Start X | |
| x2 | Yes | End X | |
| y1 | Yes | Start Y | |
| y2 | Yes | End Y | |
| color | Yes | Line color | |
| canvas | No | Canvas name | default |