ComfyUI > Nodes > comfy_Pond_Nodes > 🐳Mask_Color_V2

ComfyUI Node: 🐳Mask_Color_V2

Class Name

MaskColorReplaceAdvanced

Category
🐳Pond/mask
Author
Pondowner857 (Account age: 730days)
Extension
comfy_Pond_Nodes
Latest Updated
2026-01-28
Github Stars
0.04K

How to Install comfy_Pond_Nodes

Install this extension via the ComfyUI Manager by searching for comfy_Pond_Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter comfy_Pond_Nodes in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

🐳Mask_Color_V2 Description

Enhances image editing by replacing mask colors with gradients and blend modes for advanced effects.

🐳Mask_Color_V2:

The MaskColorReplaceAdvanced node is designed to enhance your image editing capabilities by allowing you to replace colors within a mask with advanced features such as gradients and blend modes. This node is particularly useful for artists who want to apply sophisticated color transformations to specific areas of an image, defined by a mask. By leveraging gradients, you can create smooth transitions between colors, adding depth and realism to your artwork. The blend mode feature allows you to control how the new color interacts with the existing colors in the image, providing a wide range of creative possibilities. This node is essential for achieving professional-level color manipulation in your projects, offering flexibility and precision in color replacement tasks.

🐳Mask_Color_V2 Input Parameters:

mask

The mask parameter is a crucial input that defines the area of the image where the color replacement will occur. It is typically a binary or grayscale image where the white or lighter areas indicate the regions to be affected by the color change. This parameter allows you to target specific parts of your image for color manipulation, ensuring that only the desired areas are altered.

color_hex

The color_hex parameter specifies the new color to be applied to the masked areas. It is provided in hexadecimal format, which is a standard way of representing colors in digital graphics. This parameter allows you to precisely define the replacement color, ensuring consistency and accuracy in your color transformations.

blend_mode

The blend_mode parameter determines how the new color will interact with the existing colors in the masked areas. Different blend modes can produce various effects, such as darkening, lightening, or creating a soft overlay. This parameter provides creative control over the final appearance of the color replacement, allowing you to achieve the desired artistic effect.

background_image

The background_image parameter is optional and allows you to specify an image that will serve as the backdrop for the color replacement. This can be useful if you want to integrate the masked areas with a different background, creating a composite image. If not provided, the existing background will remain unchanged.

opacity

The opacity parameter controls the transparency level of the new color applied to the masked areas. It ranges from 0.0 (completely transparent) to 1.0 (completely opaque). This parameter allows you to blend the new color with the existing image, creating subtle or bold effects depending on your artistic vision.

feather

The feather parameter is used to soften the edges of the masked areas, creating a smooth transition between the affected and unaffected regions. This can help to avoid harsh lines and create a more natural look in the final image. The feathering effect can be adjusted to suit the specific requirements of your project.

🐳Mask_Color_V2 Output Parameters:

image

The image output parameter provides the final image after the color replacement process has been applied. This image reflects all the adjustments made based on the input parameters, including the new color, blend mode, and any optional background integration. The output image is ready for further processing or final use in your creative projects.

🐳Mask_Color_V2 Usage Tips:

  • Experiment with different blend modes to achieve unique artistic effects and find the one that best suits your project.
  • Use the feather parameter to create smooth transitions and avoid harsh edges in the masked areas, enhancing the realism of your image.
  • Adjust the opacity to control the intensity of the color replacement, allowing for subtle or dramatic changes as needed.

🐳Mask_Color_V2 Common Errors and Solutions:

Invalid mask shape

  • Explanation: This error occurs when the mask input does not have the correct dimensions or format expected by the node.
  • Solution: Ensure that your mask is a binary or grayscale image with the appropriate dimensions matching the target image.

Incorrect color_hex format

  • Explanation: This error arises when the color_hex input is not in the correct hexadecimal format.
  • Solution: Verify that the color_hex value is a valid hexadecimal string, starting with a # followed by six hexadecimal digits.

Unsupported blend_mode

  • Explanation: This error indicates that the specified blend mode is not recognized by the node.
  • Solution: Check the documentation for supported blend modes and ensure that you are using one of the valid options.

🐳Mask_Color_V2 Related Nodes

Go back to the extension to check out more related nodes.
comfy_Pond_Nodes
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

🐳Mask_Color_V2