ComfyUI  >  Nodes  >  Dream Project Animation Nodes >  📊 Compare Palettes

ComfyUI Node: 📊 Compare Palettes

Class Name

Compare Palettes [Dream]

Category
✨ Dream/🌄 image/🎨 color
Author
Dream Project (Account age: 669 days)
Extension
Dream Project Animation Nodes
Latest Updated
7/1/2024
Github Stars
0.1K

How to Install Dream Project Animation Nodes

Install this extension via the ComfyUI Manager by searching for  Dream Project Animation Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Dream Project Animation 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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

📊 Compare Palettes Description

Analyze and compare color palettes for AI artists, calculating brightness, contrast, and color channel multipliers for alignment and adjustment.

Compare Palettes [Dream]:

The Compare Palettes [Dream] node is designed to analyze and compare two color palettes, providing a detailed comparison of their brightness, contrast, and color components (red, green, and blue). This node is particularly useful for AI artists who want to understand the differences between two palettes in terms of their visual properties. By comparing these properties, you can make informed decisions about color adjustments and harmonization in your artwork. The node calculates multipliers for brightness, contrast, and each color channel, which can be used to align or adjust one palette to match another more closely.

Compare Palettes [Dream] Input Parameters:

a

This parameter represents the first color palette to be compared. It is an instance of RGBPalette and contains a collection of colors that will be analyzed for their brightness, contrast, and individual color components. The analysis of this palette will serve as the baseline for comparison.

b

This parameter represents the second color palette to be compared. Like the first palette, it is an instance of RGBPalette and contains a collection of colors. The properties of this palette will be compared against those of the first palette to determine the relative differences in brightness, contrast, and color components.

Compare Palettes [Dream] Output Parameters:

brightness_multiplier

This output parameter provides the ratio of the average brightness of the second palette to the first palette. It indicates how much brighter or darker the second palette is compared to the first.

contrast_multiplier

This output parameter provides the ratio of the average contrast of the second palette to the first palette. It helps you understand the difference in contrast levels between the two palettes.

red_multiplier

This output parameter provides the ratio of the average red component of the second palette to the first palette. It indicates how the red intensity of the second palette compares to the first.

green_multiplier

This output parameter provides the ratio of the average green component of the second palette to the first palette. It indicates how the green intensity of the second palette compares to the first.

blue_multiplier

This output parameter provides the ratio of the average blue component of the second palette to the first palette. It indicates how the blue intensity of the second palette compares to the first.

Compare Palettes [Dream] Usage Tips:

  • Use this node to compare the color properties of two different palettes before making adjustments to ensure color harmony in your artwork.
  • The multipliers provided by this node can be used to adjust one palette to match the visual properties of another, aiding in creating a cohesive color scheme.

Compare Palettes [Dream] Common Errors and Solutions:

TypeError: 'NoneType' object is not iterable

  • Explanation: This error occurs when one of the input palettes is not properly defined or is None.
  • Solution: Ensure that both input parameters a and b are valid instances of RGBPalette and contain color data.

ValueError: min() arg is an empty sequence

  • Explanation: This error occurs when one or both of the input palettes are empty.
  • Solution: Verify that both palettes contain at least one color before passing them to the node.

ZeroDivisionError: float division by zero

  • Explanation: This error occurs when the node attempts to divide by zero, which can happen if a palette has a color component with a value of zero.
  • Solution: Ensure that the palettes do not contain colors with zero values for brightness, contrast, or color components.

📊 Compare Palettes Related Nodes

Go back to the extension to check out more related nodes.
Dream Project Animation Nodes
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.