draw_line
Draw a straight line between two points on a sprite, with options for pixel-perfect rendering or antialiasing.
Instructions
Draw a straight line from (x1,y1) to (x2,y2).
Args:
pixel_perfect: Remove L-shaped corner pixels for a clean 1px pixel-art line.
antialias: Smooth (Xiaolin Wu) line with alpha blending — RGB sprites only;
ignored on indexed/gray. Takes precedence over pixel_perfect.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | ||
| x2 | Yes | ||
| y1 | Yes | ||
| y2 | Yes | ||
| color | Yes | ||
| frame | No | ||
| layer | No | ||
| filename | Yes | ||
| antialias | No | ||
| pixel_perfect | No |