| source | COMFY_MATCHTYPE_V3 | | Image or mask to draw on (a copy is made). Accepts a ComfyUI IMAGE/MASK directly (frame 0 of a batch) or an NPARRAY. Arithmetic ops (add, multiply, etc.) process the full IMAGE batch when both inputs have the same batch size. |
| points | NPARRAY | | (N,2) for a single polyline/polygon, or (N,M,2) for N separate M-point polygons (e.g. rotated quads from EAST text detection). |
| color | STRING | (0, 0, 255) | Color as a single value (broadcast to all channels) or BGR tuple, e.g. '255' or '(0, 0, 255)'. Shorter tuples are zero-padded; longer tuples are truncated. |
| thickness | INT | 30–64 | Outline width in pixels. 0 = filled polygons (cv2.fillPoly) - useful for creating masks. |
| closed | BOOLEAN | true | Connect the last point back to the first (closed polygon) vs leave it open (polyline). Ignored when thickness=0 (always filled). |
| line_styleopt | COMBO | solid | Stroke pattern. Colour alone cannot separate two overlaid line sets for a colour-blind viewer or in greyscale - give the second set a different style and the picture reads without the palette. 'solid' is cv2's own line. Ignored when the polygons are filled (thickness=0, or a MASK canvas). |