draw_polyline
Draw connected line segments through a list of points. Optionally close the shape into a polygon and apply pixel-perfect smoothing for clean pixel-art outlines.
Instructions
Draw connected line segments through a list of points.
points: list of {"x": int, "y": int}. Set closed=True to connect the last
point back to the first (outline a polygon). pixel_perfect removes L-corner
pixels across the whole path for a clean pixel-art outline.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | Yes | ||
| frame | No | ||
| layer | No | ||
| closed | No | ||
| points | Yes | ||
| filename | Yes | ||
| pixel_perfect | No |