draw_line_to_render_target
Draw a line into a render target via canvas using start and end screen-space pixels; identical points skip the zero-length line and return drawn false.
Instructions
Draw a line into a render target via the canvas. drawn is false, and the call fails, when start and end are the same point (the canvas skips a zero-length line).
Returns: { render_target_path: string, drawn: bool, thickness: number, start: [number], end: [number] }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | Line end position [x, y] in screen-space pixels | |
| color | No | Optional [r, g, b, a] line color, defaults to opaque white | |
| start | Yes | Line start position [x, y] in screen-space pixels | |
| thickness | No | Optional line thickness in pixels, default 1 | |
| render_target_path | Yes | Asset path of the destination render target |