ComfyUI Node
Draw Mask On Image
Blends each frame towards `color` by mask x alpha; an RGBA image keeps the larger of its alpha and the mask. A mask of another size is scaled to the image (nearest), fewer masks than frames repeat.
Draw Mask On Image
- image
- mask
- images
◄color0, 0, 0►
◄devicecpu►
CategoryBCNodes/mask
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| mask | MASK | — | |
| color | STRING | 0, 0, 0 | RGB or RGBA, comma-separated, each value 0-255 or 0-1 (a value above 1 is read as 0-255), or #rgb / #rgba / #rrggbb / #rrggbbaa. Alpha is the opacity, 1 when absent. Ex: 255, 0, 0, 128 |
| deviceopt | COMBO | cpu | Device the frames are blended on. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| images | IMAGE | — |