FUSION · FULL ARTICLE
Recolor
Krokodove Recolor replaces selected colors through multiple Color From → Color To pairs. Tolerance defines the match range, Other Pixels controls unmatched pixels, and Render covers sampling and premultiplied alpha handling.
Overview
Recolor performs explicit color substitution. Specify one or more pairs, sample Color From from the node’s actual input, and set Color To. The Resolve 21 manual lists it among the integrated Krokodove Image Color Tools.
A flat palette, logo or technical color chart with known values is a good test source. Lighting, blur, noise and compression turn one real-world paint color into many values. Recolor selects values rather than recognizing clothing, a car or another semantic object.
Tolerance broadens matching around the source samples. Do not interpret it as Delta E, mask softness or a saturation percentage; those formulas are not established by the brief documentation. With similar Color From entries, do not assume an undocumented overlap priority: keep pairs distinct and test them separately.
Other Pixels Keep retains unmatched regions while Clear clears them. For the illustrated matte, create and inspect a white/black RGB image, then select Luminance in Bitmap. A standard Effect Mask can also read Luminance directly. Black RGB and zero Alpha are different properties, so choose the coverage channel deliberately.
Color From and Color To expose RGBA components. With translucent edges, inspect the source before substitution: premultiplied pixel RGB depends on alpha. Pre-Divide / Post-Multiply supports processing such RGB and restoring premultiplication; it cannot recover color lost at alpha=0.
The supplied PNGs establish Controls and Render but do not show Flow. The teaching contract therefore describes one required image path, Input → Output; a separate EffectMask on the integrated node is not asserted without native verification. The local recoloring exercise uses an external Merge mask.
When to use it
- Remap a flat logo or UI palette.
- Build a testable selection image before Bitmap.
- Replace a shared color in only one region.
- Compare color-boundary sampling and translucent edges.
Article screenshots
Inputs & outputs
Recolor · data path
One required image path. Input/Output are semantic teaching labels; the source Inspector PNG does not establish exact FX/Krokodove wrapper socket names.
Krokodove Recolor replaces selected colors through multiple Color From → Color To pairs. Tolerance defines the match range, Other Pixels controls unmatched pixels, and Render covers sampling and premultiplied alpha handling.
Inputs
- Input
Image
Receives: The source 2D RGBA image.
Inside the node: Supplies the image processed by the node.
Typical sources: MediaIn · Loader
Inspect the actual input before processing.
Outputs and destination
Output
The processed 2D image; inspect RGB and alpha separately.
Next step: MediaOut · Merge · Bitmap
Use a separate Merge for local application; no unconfirmed mask port is added here.
- Output
- The processed 2D image; inspect RGB and alpha separately.
Processing order
- Prepare a test palette and inspect actual input RGBA.
- Start with one pair and a low Tolerance.
- Choose Keep or Clear for the intended result.
- Add remaining pairs and check overlaps.
Reference pass
MediaIn → Recolor → MediaOut
Different data types are connected through suitable existing tools.
A pixel-value substitution table: which colors to find, what to replace them with, and how to handle everything else.
Parameters
Recolor · Inspector reference
Source-color selection → replacement palette → unmatched pixels → edges and alpha. Multiple pairs do not turn the node into an automatic object selector.
- Source values
- Sample the actual input.
- Pairs
- Define distinct From/To pairs.
- Coverage
- Check unmatched regions and scope.
- Render
- Inspect edges and alpha.
Selection · Match range
Tolerance and treatment of unmatched pixels.
- Tolerance
Selection > ToleranceSets the matching tolerance around Color From. A wider range can include nearby background colors and edges. Start with a small value on a clean palette; the numeric tolerance is not a documented Delta E metric.
Check / distinguish: Compare an exact sample, a slightly changed color and a clearly different color.
- Other Pixels: Keep / Clear
Selection > Other Pixels: Keep / ClearChooses how pixels outside the matching pairs are handled. Keep retains them; Clear clears them. For matte work, inspect RGB and alpha separately: a visually black region does not establish zero opacity.
Check / distinguish: Include a third test color that is absent from Color From.
- Keep
Controls > Other PixelsRetains pixels outside the replacement colors. It is a useful starting mode for recoloring a palette within an existing image.
Check / distinguish: An unmatched gray swatch should remain a reference region.
- Clear
Controls > Other PixelsClears unmatched regions. For a matte, assign white to the selected color and explicitly verify a black background before Bitmap.
Check / distinguish: A standard Effect Mask can read a selected image channel directly. Check Channel on the receiving node; Bitmap is useful for separate matte extraction and processing.
- Temporal stability
Review > motionColor changes with lighting, motion blur and compression. The node does not track the selected object semantically.
Check / distinguish: Review the whole shot for values falling outside tolerance.
Color pairs · Replacement table
Pair count and explicit RGBA values.
- Number of Colors
Color pairs > Number of ColorsSets the number of active replacement pairs. Each pair has its own From sample and To result. Increasing the count does not analyze the palette automatically; fill every active pair and remove unintended duplicates.
Check / distinguish: Test pairs individually before enabling the full set.
- Color From 1 / 2 / 3 ...
Color pairs > Color From 1 / 2 / 3 ...Defines the source colors to match. Sample the image immediately before the node. A different color pipeline, display LUT or premultiplication can change numeric RGB even when a swatch looks similar.
Check / distinguish: Compare the Color From number with the actual input pixel.
- Color To 1 / 2 / 3 ...
Color pairs > Color To 1 / 2 / 3 ...Defines new values for the corresponding matches. Each Color To belongs to the pair with the same number. It is a color substitution, not automatic preservation of a real object’s lighting, texture and hue variation.
Check / distinguish: Use a distinct test color before selecting the production palette.
- Red / Green / Blue / Alpha
Color pairs > Red / Green / Blue / AlphaProvides separate component values for source and destination swatches. Alpha is an independent component. Avoid an accidentally transparent Color To, and do not assume that changing only RGB guarantees an unchanged edge.
Check / distinguish: Inspect the opaque center and translucent boundary separately.
- Overlapping Color From
Controls > pair reviewNearby samples can overlap at a wide Tolerance. The consulted sources do not establish the priority order.
Check / distinguish: Reduce tolerance or split the substitution into testable stages.
- Sample before the node
Viewer > source sampleThe incoming color after earlier nodes may differ from the original PNG or camera value.
Check / distinguish: Sample the Recolor input under consistent viewing conditions.
Sampling · Edge sampling
Compare quality at delivery size.
- Super-Sampling
Sampling > Super-SamplingSelects the additional sampling grid. The supplied menu lists 1x1, 2x2, 3x3, 4x4, 5x5, 8x8 and 16x16. Judge higher settings on a particular edge; they do not improve semantic color selection and may increase computation time.
Check / distinguish: Compare 1x1 and 4x4 with an unchanged palette at 100%.
- Super-Sampling Filter Size
Sampling > Super-Sampling Filter SizeSets the sampling-filter size. This affects edge reconstruction together with Super-Sampling. It is not Tolerance and does not expand the color selection range.
Check / distinguish: Ensure smoothing does not blur fine logo lines.
- 1x1 reference
Render > Super-SamplingThe simple reference grid separates palette behavior from additional smoothing.
Check / distinguish: First establish correct substitution at the swatch center.
- 2x2–16x16 comparison
Render > Super-SamplingThe menu shows 2x2/3x3/4x4/5x5/8x8/16x16. Select by an observed edge and timing difference, not the largest number.
Check / distinguish: Compare one frame at one Filter Size.
Alpha / Review · Transparency and application
Premultiplication, masking and temporal review.
- Pre-Divide / Post-Multiply
Alpha / Review > Pre-Divide / Post-MultiplyControls premultiplied-RGB handling around the color operation. Pre-Divide separates RGB from alpha before processing and Post-Multiply restores multiplication. Do not automatically add another AlphaDivide/AlphaMultiply pair; first identify the input’s actual state.
Check / distinguish: Compare a transparent logo’s edge over light and dark backgrounds.
- Bitmap channel
Flow > BitmapBitmap converts a chosen image channel into a mask stream. Use Luminance for white RGB on black; choose Alpha only after checking it.
Check / distinguish: Verify 0 in the background and 1 in the intended swatch.
- External region limit
Flow > Merge > Effect MaskRecolor selects a color across its input. For one object sharing a background color, branch the processing and limit an external Merge.
Check / distinguish: Two identical red swatches should change only inside the Merge mask.
- Alpha-zero pixels
Pipeline > premultiplicationAt alpha=0, color may be lost or may contain hidden technical values. Division does not reconstruct unknown original RGB.
Check / distinguish: Review the transparent edge without a second unjustified pre-divide.
Before adjusting the node
- Color From is sampled from the input before Recolor.
- Active pairs do not overlap unintentionally.
- Keep/Clear matches the intended result.
- Bitmap channel and premultiplication are checked explicitly.
- Recoloring is reviewed in motion and at boundaries.
Reference documentation
- Blackmagic Design — DaVinci Resolve 21 Reference Manual: Recolor
Physical PDF pages 2483–2485; node purpose and documented control scope.
- Komkom Doorn — Krokodove author overview
Tool authorship and history. The older v8.30 package is not equated with the integrated Resolve 21 version.
Examples
Three colors with an unchanged reference
Replace three known swatches while preserving a fourth and verifying pair correspondence.
Starting conditions
DaVinci Resolve 21 · Recolor 21 · editorial reference 2026-10-18 · Krokodove in Resolve 21; confirm the integrated Recolor tool in the installed edition. · Target OS is not fixed; Resolve verification is pending.
1920 × 1080 · 24 fps · 120 frames · A fixed test-RGBA palette pipeline with known source values.
- Prepare real inputs as described in each exercise; no prebuilt .comp or media files are attached.
Source material
- SRC
A still opaque 1920×1080 palette: red [1,0,0,1], green [0,1,0,1], blue [0,0,1,1] and reference gray [0.5,0.5,0.5,1].
Build your own palette with Background nodes or import a prepared chart into a fixed RGB pipeline. Verify the values immediately before Recolor. No file is attached.
Nodes and connections
SRC— Source · MediaInFX— Process · RecolorOUT— Result · MediaOut
| Source | Destination | Data |
|---|---|---|
Source (SRC)Output | Process (FX)Input | image |
Process (FX)Output | Result (OUT)Input | image |
Graph output: Result (OUT)
Parameter values
- Process (FX) / Controls / Number of Colors
3Three separate known pairs.
- Process (FX) / Controls / Tolerance
0.01A low tolerance for a numerically known palette.
- Process (FX) / Controls / Other Pixels
"Keep"Gray remains an unmatched reference color.
- Process (FX) / Controls / Color From 1
[1,0,0,1]The first opaque source swatch.
- Process (FX) / Controls / Color To 1
[0,1,1,1]A clearly different destination for the first pair.
- Process (FX) / Controls / Color From 2
[0,1,0,1]The second source swatch is distinct from the first.
- Process (FX) / Controls / Color To 2
[1,0,1,1]An explicit replacement for the second color.
- Process (FX) / Controls / Color From 3
[0,0,1,1]The third independent swatch.
- Process (FX) / Controls / Color To 3
[1,1,0,1]An explicit replacement for the third color.
- Process (FX) / Render / Super-Sampling
"1x1"First test swatch centers without extra sampling.
- Process (FX) / Render / Super-Sampling Filter Size
1One filter size throughout the comparison.
- Process (FX) / Render / Pre-Divide / Post-Multiply
trueA fixed premultiplied-RGB treatment.
Reproduce the example
- Inspect the four swatches’ numeric RGBA at the Recolor input.
The names red/green do not replace actual pixel values.
Check: Swatch centers match the specified input values.
- Set Number of Colors 3, Tolerance 0.01, Keep and all three From/To pairs.
Only the explicitly defined palette is changed.
Check: Red becomes cyan, green magenta and blue yellow; gray is unselected.
- Select 1x1, Filter Size 1 and the shown Pre-Divide / Post-Multiply state.
The reference test needs one sampling configuration.
Check: There is no unexplained alpha change at swatch centers.
- Temporarily keep one active pair at a time in test copies and verify it independently.
This exposes swapped pair numbers and overlaps.
Check: Each pair changes only its source color at the low tolerance.
- Compare swatch boundaries at 1x1 and 4x4, then restore the reviewed mode.
Edge sampling is assessed separately from palette correctness.
Check: Record the observed difference or its absence, with the gray reference retained.
- Inspect RGB and alpha at 100%, including the unmatched gray area.
Keep and RGBA pairs are verified on an actual result.
Check: Three swatches have the intended values and the fourth is not replaced.
Expected result
- Result (OUT) · frame 0
Three explicit substitutions are made while reference gray remains unchanged.
Alpha: Opaque centers remain opaque; inspect boundaries separately.
When the result differs
- The result does not match the testable goal.
Cause: Several conditions changed, the source differs or ports are misconnected.
Correction: Restore the described source, inspect connections and repeat one step.
References
- Blackmagic Design — The Visual Effects Guide to DaVinci Resolve 20
Printed pp. 9–12, 145–150; PDF pp. 29–32, 165–170 (zero-based).
- Blackmagic Design — DaVinci Resolve 21 Reference Manual: Recolor
Physical PDF pages 2483–2485. Node purpose and documented behavior; supplied source Inspector PNGs establish the retained visible control inventory. Semantic graph IDs are not native serialization.
From color substitution to a typed matte
Explicitly convert Recolor’s white/black RGB through Bitmap and apply it as a Merge mask.
Starting conditions
DaVinci Resolve 21 · Recolor 21 · editorial reference 2026-10-18 · Krokodove in Resolve 21; confirm the integrated Recolor tool in the installed edition. · Target OS is not fixed; Resolve verification is pending.
1920 × 1080 · 24 fps · 120 frames · A fixed test-RGBA palette pipeline with known source values.
- Prepare real inputs as described in each exercise; no prebuilt .comp or media files are attached.
Source material
- SRC
A still opaque 1920×1080 palette: red [1,0,0,1], green [0,1,0,1], blue [0,0,1,1] and reference gray [0.5,0.5,0.5,1].
Build your own palette with Background nodes or import a prepared chart into a fixed RGB pipeline. Verify the values immediately before Recolor. No file is attached.
Nodes and connections
SRC— Palette · MediaInFX— Color select · RecolorMATTE— RGB matte · BitmapMaskFILL— New color · BackgroundMIX— Apply · MergeOUT— Result · MediaOut
| Source | Destination | Data |
|---|---|---|
Palette (SRC)Output | Color select (FX)Input | image |
Color select (FX)Output | RGB matte (MATTE)Image | image |
Palette (SRC)Output | Apply (MIX)Background | image |
New color (FILL)Output | Apply (MIX)Foreground | image |
RGB matte (MATTE)Mask | Apply (MIX)EffectMask | mask |
Apply (MIX)Output | Result (OUT)Input | image |
Graph output: Result (OUT)
Parameter values
- Color select (FX) / Controls / Number of Colors
1One color region becomes a white test signal.
- Color select (FX) / Controls / Color From 1
[1,0,0,1]Select the known red.
- Color select (FX) / Controls / Color To 1
[1,1,1,1]White RGB is intended for a luminance matte.
- Color select (FX) / Controls / Other Pixels
"Clear"Clear unmatched regions before checking black RGB.
- Color select (FX) / Controls / Tolerance
0.01Exclude the green, blue and gray swatches.
- Color select (FX) / Render / Pre-Divide / Post-Multiply
trueKeep premultiplication treatment fixed.
- RGB matte (MATTE) / Controls / Channel
"Luminance"Create a mask from verified white RGB on black.
- RGB matte (MATTE) / Controls / Low
0Black maps to zero coverage.
- RGB matte (MATTE) / Controls / High
1White maps to full coverage.
- New color (FILL) / Controls / Color
[0,1,1,1]A contrasting opaque color to inspect mask coverage.
- Apply (MIX) / Controls / Blend
1Coverage comes from the mask rather than a reduced Merge.
Reproduce the example
- Feed the palette and set red From, white To, Clear and a low Tolerance.
This creates a diagnostic selection image, not yet a mask stream.
Check: The selected swatch is white in RGB and unmatched regions are cleared.
- View Recolor directly: verify RGB=0 in the cleared background and RGB=1 at the selected swatch center.
This distinguishes black from transparency.
Check: White and black are confirmed numerically, with alpha inspected separately.
- Connect Recolor Output to Bitmap Image and choose Luminance, Low 0 and High 1.
In this exercise Bitmap explicitly extracts Luminance and sets Low/High. A standard Effect Mask can read an image channel directly; Bitmap is used for separate matte control.
Check: Bitmap outputs Mask, with selected coverage 1 and background coverage 0.
- Feed the source to Merge Background, a cyan Background to Foreground and Bitmap Mask to Effect Mask.
The replacement color and its application area are separate.
Check: Cyan appears only in place of the selected red swatch.
- Inspect soft edges and unmatched colors; do not switch Bitmap to Alpha without separately verifying that channel.
A different channel meaning can change the entire coverage.
Check: The other swatches remain, and Merge coverage follows the Luminance selected in Bitmap rather than the source’s opaque Alpha.
Expected result
- Result (OUT) · frame 0
The cyan fill is applied only to selected red through an explicit Bitmap mask stream.
Alpha: Inspect final-composite alpha separately from selection RGB.
When the result differs
- The new color covers the entire frame.
Cause: Bitmap uses an unverified alpha channel or cleared RGB was not black.
Correction: Inspect Recolor output RGB, then Bitmap Luminance and its 0–1 range.
References
- Blackmagic Design — The Visual Effects Guide to DaVinci Resolve 20
Printed pp. 9–12, 145–150; PDF pp. 29–32, 165–170 (zero-based).
- Blackmagic Design — DaVinci Resolve 21 Reference Manual: Recolor
Physical PDF pages 2483–2485. Node purpose and documented behavior; supplied source Inspector PNGs establish the retained visible control inventory. Semantic graph IDs are not native serialization.
The same color in two separate regions
Change only the left red swatch while retaining the identically colored one on the right.
Starting conditions
DaVinci Resolve 21 · Recolor 21 · editorial reference 2026-10-18 · Krokodove in Resolve 21; confirm the integrated Recolor tool in the installed edition. · Target OS is not fixed; Resolve verification is pending.
1920 × 1080 · 24 fps · 120 frames · A fixed test-RGBA palette pipeline with known source values.
- Prepare real inputs as described in each exercise; no prebuilt .comp or media files are attached.
Source material
- SRC
Two identical opaque red swatches on a neutral 1920×1080 background; each fits within the central region of its half.
Build a chart using Background and masks or import your own test graphic. No file is attached.
Nodes and connections
SRC— Two swatches · MediaInFX— Recolor · RecolorREGION— Left region · RectangleMaskMIX— Local blend · MergeOUT— Result · MediaOut
| Source | Destination | Data |
|---|---|---|
Two swatches (SRC)Output | Recolor (FX)Input | image |
Two swatches (SRC)Output | Local blend (MIX)Background | image |
Recolor (FX)Output | Local blend (MIX)Foreground | image |
Left region (REGION)Mask | Local blend (MIX)EffectMask | mask |
Local blend (MIX)Output | Result (OUT)Input | image |
Graph output: Result (OUT)
Parameter values
- Recolor (FX) / Controls / Number of Colors
1One explicit pair for the reference red swatch.
- Recolor (FX) / Controls / Color From 1
[1,0,0,1]Match the test palette’s exact opaque red.
- Recolor (FX) / Controls / Color To 1
[0,1,1,1]A contrasting cyan replacement makes the check clear.
- Recolor (FX) / Controls / Tolerance
0.01A small tolerance for the prepared palette.
- Recolor (FX) / Controls / Other Pixels
"Keep"Keep the other colors.
- Recolor (FX) / Render / Pre-Divide / Post-Multiply
trueAccount for premultiplied edges in the prepared graphic.
- Left region (REGION) / Controls / Center
[0.25,0.5]The mask selects the left region rather than a color.
- Left region (REGION) / Controls / Width
0.3Exclude the identical swatch on the right.
- Left region (REGION) / Controls / Height
0.6The intended swatch fits within the region.
- Left region (REGION) / Controls / Soft Edge
0.02Inspect the spatial-composite boundary separately.
- Local blend (MIX) / Controls / Blend
1Full processing inside the mask.
Reproduce the example
- Prepare two identical red swatches on a neutral opaque background, centered near X=0.25 and X=0.75.
Color matching alone cannot distinguish spatial objects.
Check: Both swatches have identical input RGBA.
- Apply one red → cyan pair with Keep and verify that both swatches change in the FX branch.
This verifies the actual scope of color matching.
Check: Before the external Merge, both identical swatches are replaced.
- Feed the original to Merge Background and the fully recolored branch to Foreground.
Merge separates the color operation from its spatial application.
Check: Two states of the same frame are blended at matching sizes.
- Connect Rectangle to Merge Effect Mask and define the left region using the shown coordinates.
This does not depend on a mask socket on integrated Recolor.
Check: The left swatch is cyan and the right remains source red.
- Move the mask in a test copy and verify that the region changes without changing the color pair, then restore it.
Spatial control is explicitly separate from color tolerance.
Check: The boundary has no duplicate alpha treatment, and the right reference remains in the final setup.
Expected result
- Result (OUT) · frame 0
The left swatch is cyan and the right red despite identical source colors.
Alpha: Inspect background and soft-edge alpha after Merge.
When the result differs
- The result does not match the testable goal.
Cause: Several conditions changed, the source differs or ports are misconnected.
Correction: Restore the described source, inspect connections and repeat one step.
References
- Blackmagic Design — The Visual Effects Guide to DaVinci Resolve 20
Printed pp. 9–12, 145–150; PDF pp. 29–32, 165–170 (zero-based).
- Blackmagic Design — DaVinci Resolve 21 Reference Manual: Recolor
Physical PDF pages 2483–2485. Node purpose and documented behavior; supplied source Inspector PNGs establish the retained visible control inventory. Semantic graph IDs are not native serialization.
Other outlines from the article
Three colors with an unchanged reference
Replace three known swatches while preserving a fourth and verifying pair correspondence.
- MediaIn
- Recolor
- MediaOut
From color substitution to a typed matte
Explicitly convert Recolor’s white/black RGB through Bitmap and apply it as a Merge mask.
- MediaIn
- Recolor
- BitmapMask
- Background
- Merge
- MediaOut
The same color in two separate regions
Change only the left red swatch while retaining the identically colored one on the right.
- MediaIn
- Recolor
- RectangleMask
- Merge
- MediaOut
Mistakes
- Expecting automatic clothing selection from one swatch.
- Increasing Tolerance without checking nearby colors.
- Confusing Clear with an already typed mask stream.
- Applying pre-divide twice and damaging transparent edges.
- Choosing 16x16 instead of correcting an incorrect Color From.
Tips
- Always include an unmatched reference color in the test.
- Separate color matching from spatial masking.
- For a matte exercise, explicitly establish a white result on black.
- Record settings with input-file and application versions.
Workflow order
- Prepare a test palette and inspect actual input RGBA.
- Start with one pair and a low Tolerance.
- Choose Keep or Clear for the intended result.
- Add remaining pairs and check overlaps.
- For local application, use a separate masked Merge.
- Review Super-Sampling, premultiplication and motion.
