game_canvas_draw
Draw 2D shapes and text on a Godot canvas using actions for lines, rectangles, circles, polygons, and text, with optional fill and color. Clear the canvas when needed.
Instructions
2D drawing: line/rect/circle/polygon/text/clear
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End point {x,y} | |
| from | No | Start point {x,y} | |
| rect | No | Rectangle {x,y,w,h} | |
| text | No | Text to draw | |
| color | No | Draw color {r,g,b,a} | |
| width | No | Line width. Default: 2 | |
| action | Yes | Action: line, rect, circle, polygon, text, clear | |
| center | No | Center point {x,y} | |
| filled | No | Fill shape. Default: true | |
| points | No | Polygon points [{x,y},...] | |
| radius | No | Circle radius | |
| parentPath | No | Parent node path for draw node |