Visit ComfyUI Online for ready-to-use ComfyUI environment
Identifies and returns complementary color for images using specified color dictionary, enhancing visual appeal and balance.
The FindComplementaryColor
node is designed to identify and return the complementary color of a given image based on a specified color dictionary. This node is particularly useful for AI artists who want to enhance their images by applying complementary color schemes, which can make the artwork more visually appealing and balanced. By analyzing the colors in the image and using a defined color dictionary, the node calculates the complementary color, which can be used to create contrast and harmony in the artwork. The node also allows for optional masking to focus on specific areas of the image, providing flexibility and precision in color manipulation.
The image
parameter is the primary input for the node, representing the image in which the complementary color needs to be found. This parameter is required and should be provided in the form of an image tensor. The image serves as the basis for the color analysis and subsequent complementary color calculation.
The color_dict
parameter is a dictionary of colors that the node uses to determine the complementary color. This parameter is required and should be provided in the form of a dictionary where keys are color names and values are the corresponding color values. The color dictionary helps the node to map the colors in the image to their complementary counterparts.
The power
parameter controls the intensity of the complementary color effect. This parameter is required and is a floating-point value with a default of 0.5. The minimum value is 0.01, and the maximum value is 10, with a step size of 0.01. Adjusting the power parameter allows you to fine-tune the strength of the complementary color effect, making it more or less pronounced as needed.
The mask
parameter is an optional input that allows you to specify a mask image. This mask can be used to focus the complementary color calculation on specific areas of the image. If provided, the mask should be an image tensor. The node will resize the main image to fit the mask if their dimensions do not match, ensuring that the complementary color effect is applied accurately to the masked regions.
The COLOR
output parameter represents the complementary color found in the image. This output is a list containing the RGB values of the complementary color. It provides a direct way to access the calculated complementary color, which can be used for further processing or visualization in your artwork.
The STRING
output parameter is a textual representation of the complementary color. This output provides the name or identifier of the complementary color as defined in the color dictionary. It offers a convenient way to reference the complementary color in a human-readable format.
color_dict
parameter is well-defined with a comprehensive set of colors that accurately represent the color palette of your image.power
parameter to adjust the intensity of the complementary color effect. A lower value will result in a subtler effect, while a higher value will make the complementary color more prominent.mask
parameter. This allows for targeted color adjustments and greater control over the final output.color_dict
parameter is not provided in the correct dictionary format.color_dict
is a dictionary where keys are color names and values are the corresponding color values. Ensure that the dictionary is correctly structured and contains valid color entries.power
parameter is set to a value outside the allowed range (0.01 to 10).power
parameter to a value within the specified range. The default value is 0.5, and you can set it to any value between 0.01 and 10, with a step size of 0.01.© Copyright 2024 RunComfy. All Rights Reserved.