pixelart_draw_polygon
Draw a polygon (outline or filled) from a list of vertex points. Use for shapes like roof slopes, tree silhouettes, or diagonal terrain edges that draw_rect or draw_circle cannot express.
Instructions
Draw a polygon (outline or filled) from a list of vertex points.
Use this for shapes that draw_rect/draw_circle can't express (roof slopes, tree silhouettes, diagonal terrain edges, etc).
Args: params: canvas_id, points (>=3 [x,y] pairs), color, fill. Returns: Confirmation string.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |