Nodes/comfyui-arkennemasis/arkennemasis Region Recolour (deterministic, exact)
ComfyUI Node

arkennemasis Region Recolour (deterministic, exact)

Retint one masked region to an exact hex while keeping the plate's own shading, highlights and shadow. No model, no API call, and no possibility of frame drift — every pixel outside the mask is bit-identical to the plate.

By Hishamahmer·Created about a month ago·Updated 9 days ago· 5
arkennemasis Region Recolour (deterministic, exact)
  • plate
  • region_mask
  • image
  • report
  • pixels_changed
cell_json
plate_lock_json
target_hex
preserve_lumatrue
strength1.00
feather1.5
Categoryarkennemasis/Variation

Inputs (8)

NameTypeDefaultDescription
plateIMAGEThe locked base plate.
cell_jsonoptSTRINGPreferred. Wire the cell and this node paints EVERY one of its hex axes, each into its own region, in one pass. With a product whose axes all specify colours, wiring only region_mask/target_hex would paint the leading axis and silently leave every other one untouched.
plate_lock_jsonoptSTRINGSupplies each region's mask, so cell_json alone is enough to resolve everything.
region_maskoptMASKSingle-region fallback, used only when cell_json is not wired.
target_hexoptSTRINGSingle-region fallback, used only when cell_json is not wired.
preserve_lumaoptBOOLEANtrueKeep the plate's lightness structure and only re-level the region's average to the target. Off replaces lightness too, which flattens the surface — almost never what you want on a photograph.
strengthoptFLOAT1.000–1Blend towards the new colour. 1.0 is exact; lower only for a tinted rather than repainted look.
featheroptFLOAT1.50–32Soften the mask edge by this many pixels so the transition reads photographic rather than cut out. Applied to the alpha only, never to the colour, so it cannot bleed the new colour outside the region.

Outputs (3)

NameTypeDescription
imageIMAGE
reportSTRING
pixels_changedINT