Nodes/ComfyUI-BCNodes/Draw Mask On Image
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.

By 0xBeycan·Created 13 days ago·Updated about 12 hours ago· 1
Draw Mask On Image
  • image
  • mask
  • images
◄color0, 0, 0►
◄devicecpu►
CategoryBCNodes/mask

Inputs (4)

NameTypeDefaultDescription
imageIMAGE—
maskMASK—
colorSTRING0, 0, 0RGB 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
deviceoptCOMBOcpuDevice the frames are blended on.

Outputs (1)

NameTypeDescription
imagesIMAGE—