ColorChangeNode recolors pixels in an input image wherever the provided mask is non-zero.
image(IMAGE): Input image tensor.mask(MASK): Mask tensor. Pixels with values other than zero will be recolored.red,green,blue(FLOAT): Components of the color to apply.
from comfy_nodes.color_change_node import ColorChangeNode
import numpy as np
node = ColorChangeNode()
image = np.zeros((2, 2, 3), dtype=np.float32)
mask = np.array([[1, 0], [0, 0]], dtype=np.float32)
colored, = node.run(image, mask, red=1.0, green=0.0, blue=0.0)RGBAdjustContrastFeatherNode scales each color channel of the input image,
adjusts overall contrast, and optionally applies a feathering blur.
image(IMAGE): Input image tensor.red,green,blue(FLOAT): Multipliers for the color channels.contrast(FLOAT): Contrast factor, where1.0means no change.feather(INT): Radius of the box blur used for feathering.
from comfy_nodes.rgb_adjust_node import RGBAdjustContrastFeatherNode
import numpy as np
node = RGBAdjustContrastFeatherNode()
image = np.zeros((2, 2, 3), dtype=np.float32)
modified, = node.run(image, red=1.5, green=1.0, blue=1.0, contrast=1.2, feather=1)