Nodes/MdColorMod/Color Map Color Rotate (MD)
ComfyUI Node

Color Map Color Rotate (MD)

Rotates a range of source hues to a destination hue range, with options for handling grays and custom hue/saturation replacement.

By MdONeilsl·Created 2 months ago·Updated about a month ago· 0
Color Map Color Rotate (MD)
  • image
  • mask
  • image
Source_from0.0
Source_to90.0
Source_clockwisefalse
Destination_from0.0
Destination_to90.0
Destination_clockwisefalse
Gray_threshold0.00
ModeChange to this
Hue0.000
Saturation0.000
Categorymd/image/color

Inputs (12)

NameTypeDefaultDescription
imageIMAGEInput image tensor.
Source_fromFLOAT0.00–360Start of the source hue range (degrees).
Source_toFLOAT90.00–360End of the source hue range (degrees).
Source_clockwiseBOOLEANfalseInterpret the source range clockwise.
Destination_fromFLOAT0.00–360Start of the destination hue range (degrees).
Destination_toFLOAT90.00–360End of the destination hue range (degrees).
Destination_clockwiseBOOLEANfalseInterpret the destination range clockwise.
Gray_thresholdFLOAT0.000–1Saturation threshold below which pixels are treated as gray.
ModeCOMBOChange to thisHow to handle gray pixels: replace with target hue/saturation or treat them as in range.
HueFLOAT0.0000–360Target hue for replaced colors.
SaturationFLOAT0.0000–1Target saturation for replaced colors.
maskoptMASKOptional mask to restrict the adjustment area.

Outputs (1)

NameTypeDescription
imageIMAGEThe hue-rotated image.