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.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| plate | IMAGE | The locked base plate. | |
| cell_jsonopt | STRING | Preferred. 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_jsonopt | STRING | Supplies each region's mask, so cell_json alone is enough to resolve everything. | |
| region_maskopt | MASK | Single-region fallback, used only when cell_json is not wired. | |
| target_hexopt | STRING | Single-region fallback, used only when cell_json is not wired. | |
| preserve_lumaopt | BOOLEAN | true | Keep 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. |
| strengthopt | FLOAT | 1.000–1 | Blend towards the new colour. 1.0 is exact; lower only for a tinted rather than repainted look. |
| featheropt | FLOAT | 1.50–32 | Soften 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)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |
| report | STRING | — |
| pixels_changed | INT | — |