Visit ComfyUI Online for ready-to-use ComfyUI environment
Blend color into image based on mask for selective color overlay, precise adjustments without affecting entire image.
The Mix Color By Mask node allows you to blend a specified color into an image based on a mask. This node is particularly useful for selectively altering parts of an image by applying a color overlay where the mask is active. The primary benefit of this node is its ability to seamlessly integrate a new color into specific regions of an image, providing a powerful tool for creative image manipulation and enhancement. By using a mask, you can control precisely where the color is applied, enabling detailed and targeted adjustments without affecting the entire image.
This parameter represents the input image that you want to modify. The image should be in a format that the node can process, typically a tensor representation of the image.
This parameter specifies the red component of the color you want to blend into the image. It accepts integer values ranging from 0 to 255, with a default value of 0. Adjusting this value will change the intensity of the red color in the blend.
This parameter specifies the green component of the color you want to blend into the image. It accepts integer values ranging from 0 to 255, with a default value of 0. Adjusting this value will change the intensity of the green color in the blend.
This parameter specifies the blue component of the color you want to blend into the image. It accepts integer values ranging from 0 to 255, with a default value of 0. Adjusting this value will change the intensity of the blue color in the blend.
This parameter represents the mask image that determines where the color blend will be applied. The mask should be in a format that the node can process, typically a tensor representation of the mask. Areas of the mask with higher values will receive more of the blended color, while areas with lower values will receive less.
The output is the modified image with the specified color blended into the regions defined by the mask. This image retains the original dimensions and format of the input image but with the color adjustments applied as per the mask.
"Input image and mask must have the same dimensions."
"Invalid color component value."
"Unsupported image format."
© Copyright 2024 RunComfy. All Rights Reserved.