ComfyUI Node
Polygon Mask
Load an image, edit closed polygon overlays, and output the composited image, raw polygon mask, and panel text.
Polygon Mask
- image
- color
- masked_image
- raw_mask
- text
◄vertex_count3►
◄fill_opacity35►
◄outline_width3►
◄polygon_data►
◄text►
Categoryimage/polygon
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| vertex_count | INT | 33–50 | — |
| color | COLOR | #FF0000 | — |
| fill_opacity | INT | 350–100 | — |
| outline_width | INT | 30–20 | — |
| polygon_data | STRING | Internal polygon state managed by the Polygon Mask editor. | |
| text | STRING | Multiline text passed through to the text output. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| masked_image | IMAGE | — |
| raw_mask | MASK | — |
| text | STRING | — |