FUSION · FULL ARTICLE
SetCanvasColor
SetCanvasColor sets the RGBA color outside an image’s domain of definition, or DoD. When the DoD is smaller than the visible raster, that color can appear in the remaining frame area.
Overview
An image in Fusion has a raster size and a domain of defined data. They may match, or after a transform the DoD may occupy only part of the frame. SetCanvasColor controls color outside that region while retaining the input image within it.
The manual shows MediaIn → Transform → SetCanvasColor: scaling down opens frame space, and canvas color makes it visible in the chosen color. The node does not increase physical resolution or replace an arbitrary separately masked backdrop.
Manual mode uses Canvas Color, Red, Green, Blue and Alpha. In the supplied capture all four components are zero: transparent black. The components describe the area outside the DoD rather than every input pixel whose alpha is zero.
The node has a required orange Input and an optional green Foreground. The second input supplies an image from which canvas color is obtained. It does not composite that image’s visible content over Input like a regular Merge Foreground; use a separate Merge for that.
When Foreground is connected, the Controls tab is empty; this is documented behavior rather than a lost setting or interface failure. Disconnect Foreground to edit the manual color again. The lesson donor has an identical explicit image and canvas color so the result does not rely on assumptions about a sampling point.
The node does not clean all hidden RGB inside transparent pixels or guarantee removal of every fringe. For diagnosis, inspect the DoD boundary, RGB and alpha before and after the effect, then the intended downstream processing. Opaque alpha after Merge over an opaque background does not prove that source alpha changed.
When to use it
- Setting a visible color in the exposed area after a Transform reduction.
- Restoring transparent-black canvas before further compositing.
- Taking canvas color from an explicitly prepared donor image.
- Distinguishing transparent pixels inside the DoD from the area outside it.
Article screenshots
Inputs & outputs
SetCanvasColor · inputs and output
The DoD identifies where an image has defined data. Canvas color supplies the value outside that region. A transparent hole inside the DoD and space outside the DoD are different cases.
The node receives the main image through Input. Canvas Color and its RGBA components define the color outside the DoD. An additional Foreground can provide canvas color from another image; with that connection, the manual Controls tab becomes empty.
Inputs
- Input
Source image
Receives: The main image with known raster size and domain of definition.
Inside the node: Supplies the source RGBA stream for processing.
Typical sources: MediaIn · Loader · Background · Transform
Check the format, RGB content and alpha before changing the node.
- Foreground
Canvas-color donor
Receives: An additional image from which the node obtains canvas color.
Inside the node: Replaces manual canvas-color entry; the Controls tab becomes empty.
Typical sources: Background · SetCanvasColor · MediaIn · Loader
This input does not composite the donor’s visible content over the main image. A sampling location is not established by the supplied capture.
Outputs and destination
Output
The main image with the specified RGBA canvas outside its DoD.
Next step: MediaOut · Merge · Transform
Inspect RGB and alpha separately; a similar Viewer image does not establish matching channel values.
- Output
- The main image with the specified RGBA canvas outside its DoD.
Processing order
- Input supplies the main image and its DoD.
- Manual RGBA sets the canvas when Foreground is disconnected.
- A connected Foreground supplies the canvas-color source.
- Input content is retained inside the DoD.
- Output is used for viewing or further compositing.
Canvas after reducing the DoD
MediaIn.Output → Transform.Input; Transform.Output → SetCanvasColor.Input; SetCanvasColor.Output → MediaOut.Input
Transform exposes space outside the DoD, and SetCanvasColor defines its RGBA. Transparent pixels inside the DoD remain a separate case.
The DoD identifies where an image has defined data. Canvas color supplies the value outside that region. A transparent hole inside the DoD and space outside the DoD are different cases.
Parameters
SetCanvasColor · Inspector reference
The DoD identifies where an image has defined data. Canvas color supplies the value outside that region. A transparent hole inside the DoD and space outside the DoD are different cases.
- Domain
- Raster and data domain
- Color
- Manual RGBA canvas
- Donor
- Optional Foreground
- Review
- Exterior region and interior alpha
Color · Manual color
One RGBA canvas outside the data domain.
- Canvas Color
Color > Canvas ColorManual RGBA color outside the DoD. The swatch and numeric components define one canvas color. It is visible inside the raster only where the raster extends beyond the current data domain. Connecting Foreground replaces the manual Controls with data from the second input.
Check / distinguish: If the color is not visible, first check the DoD boundary and Foreground connection.
- Transparent black
Controls > RGBAThe supplied capture shows Red, Green, Blue and Alpha at 0: transparent-black canvas.
Check / distinguish: This state is treated as a canvas setting rather than cleanup of every pixel.
RGB · RGB components
The color concerns the canvas rather than all pixels.
- Red
RGB > RedRed component of canvas color. Red concerns the value outside the DoD and does not recolor every image pixel’s red channel. For a visible color test, use alpha 1, reduce the source and compare only the exposed edge.
Check / distinguish: Keep Green, Blue and Alpha unchanged when comparing Red separately.
- Green
RGB > GreenGreen component of canvas color. Together with Red and Blue it defines color outside the data domain. Zero alpha inside a defined source region does not by itself make that region subject to canvas color.
Check / distinguish: Check the coordinate relative to the DoD rather than only its alpha value.
- Blue
RGB > BlueBlue component of canvas color. Blue changes the value outside the DoD. It is not automatic removal of blue or other hidden RGB inside the image. For complex edges, inspect the actual next operation separately.
Check / distinguish: For a simple transparent canvas, use RGBA 0/0/0/0.
- Defined pixels
Viewer > DoDInput pixels remain inside the DoD even when some are transparent.
Check / distinguish: A transparent interior area is distinguished from space outside the DoD.
Alpha · Canvas transparency
Inspect exterior and interior regions separately.
- Alpha
Alpha > AlphaOpacity of canvas color outside the DoD. Alpha 0 sets a transparent canvas, alpha 1 an opaque one, and intermediate values a partially transparent one. These values do not replace all existing alpha inside the DoD. When working over a background, inspect both regions separately.
Check / distinguish: Compare the exterior region with a transparent hole known to lie inside the DoD.
- Canvas alpha
Controls > AlphaCompare alpha outside the DoD directly at the node output.
Check / distinguish: An opaque Merge background does not hide the intended check.
- No global alpha fill
Viewer > Interior alphaCanvas alpha 1 does not set every image pixel’s alpha to 1.
Check / distinguish: An interior transparent hole is inspected independently of the exterior region.
Domain · DoD and the second input
Color sourcing and its region of effect.
- Domain of definition
Image > DoDThe DoD is the region of defined data; it differs from raster size and the transparency mask.
Check / distinguish: The raster and its current data domain are identified in the image.
- Exposed raster
Transform > Size / Edges CanvasScaling down through Transform can expose space outside the DoD within the raster.
Check / distinguish: Raster size is retained and the exterior region is visible.
- Foreground donor
Inputs > ForegroundThe optional green input takes an image for canvas color. It does not perform regular foreground compositing.
Check / distinguish: The donor and main image have distinct roles.
- Empty Controls
Inspector > ControlsBMD documents an empty Controls tab while Foreground is connected.
Check / distinguish: Foreground is disconnected for manual editing.
- Uniform donor test
Donor > Image and canvasThe reference donor has matching image and canvas colors, avoiding an assumption about sampling location.
Check / distinguish: The donor is inspected independently before connecting Foreground.
- Downstream inspection
Output > Transform / MergeEvaluate the canvas value in the actual downstream chain.
Check / distinguish: No single-setting cure for all fringes is assumed.
Before adjusting the node
- Raster and DoD are distinguished in the reference view.
- Input contains the main image.
- A connected Foreground supplies the color source.
- Manual Controls are checked against the Foreground state.
- Alpha inside and outside the DoD is checked separately.
Reference documentation
- Blackmagic Design · Resolve 21 · setcanvascolor
Purpose, data flow and common controls; current entries are additionally checked against all original PNG captures.
Examples
Color in the exposed frame area
Reduce the image DoD and make the area outside it white while retaining source content.
Starting conditions
DaVinci Resolve 21 · SetCanvasColor 21 · editorial reference 2026-10-18 · A Resolve 21 installation with SetCanvasColor available. · Target OS is not fixed; Resolve verification is pending.
1920 × 1080 · 24 fps · 120 frames · Consistent composition space, 1920×1080, 24 fps and alpha handling across every branch.
- Built-in Fusion nodes are used. Prepare sources as described by the lesson; no prebuilt media or .comp files are attached.
Source material
- SRC
Prepare an opaque 1920×1080 RGB frame with clearly identifiable central content and alpha 1 throughout.
Use a photograph or a prepared color test image, keeping a single still frame.
Nodes and connections
SRC— Image · MediaInXF— Smaller DoD · TransformFX— CANVAS COLOR · SetCanvasColorOUT— Output · MediaOut
| Source | Destination | Data |
|---|---|---|
Image (SRC)Output | Smaller DoD (XF)Input | image |
Smaller DoD (XF)Output | CANVAS COLOR (FX)Input | image |
CANVAS COLOR (FX)Output | Output (OUT)Input | image |
Graph output: Output (OUT)
Parameter values
- Smaller DoD (XF) / Controls / Center
[0.5,0.5]Keep the image centered in the frame.
- Smaller DoD (XF) / Controls / Use Size and Aspect
trueUse one scale factor for both axes.
- Smaller DoD (XF) / Controls / Size
0.5Set the visible scale for the reference view.
- Smaller DoD (XF) / Controls / Aspect
1Preserve the original aspect ratio.
- Smaller DoD (XF) / Controls / Angle
0Exclude rotation from the test.
- Smaller DoD (XF) / Controls / Edges
"Canvas"Explicitly select how exposed edges are filled.
- CANVAS COLOR (FX) / Controls / Red
1Set Red of the color outside the DoD.
- CANVAS COLOR (FX) / Controls / Green
1Set Green of the color outside the DoD.
- CANVAS COLOR (FX) / Controls / Blue
1Set Blue of the color outside the DoD.
- CANVAS COLOR (FX) / Controls / Alpha
1Set Alpha of the color outside the DoD.
Reproduce the example
- Load an opaque 1920×1080 frame and enable the DoD display.
Raster size must be distinguished from the data domain.
Check: Before transformation, the source fills the frame and has continuous alpha.
- Connect MediaIn → Transform → SetCanvasColor → MediaOut; leave Foreground disconnected.
An unconnected Foreground preserves manual canvas-color control.
Check: Controls contains RGBA and only Input is connected.
- In Transform set Center 0.5/0.5, Size 0.5, Aspect 1, Angle 0 and Edges Canvas.
Content shrinks within the existing raster, exposing space outside the DoD.
Check: The raster remains1920×1080 and the reduced DoD boundary is visible.
- Set SetCanvasColor Red 1, Green 1, Blue 1 and Alpha 1.
The exterior region receives a visible white canvas.
Check: White appears outside the reduced DoD.
- Compare a point inside the source content with a point outside the DoD but inside the frame.
The check establishes the node’s affected region.
Check: Interior content is retained and the exterior region uses canvas color.
- Inspect RGB and alpha separately, then temporarily use RGBA 0/0/0/0 and compare the exterior region.
Canvas color and transparency are inspected outside the DoD.
Check: The transparent variant differs outside; interior pixels are not used as a canvas indicator.
- Restore white RGBA 1/1/1/1 and save the reference view with its DoD indicated.
The final result matches the specified state.
Check: Manual mode and the white exterior region are restored.
Expected result
- Output (OUT) · frame 0
Source content is reduced in the frame center, with white canvas outside its DoD.
Alpha: Both the opaque source and white canvas have alpha 1; the affected region is checked against the DoD boundary.
When the result differs
- The color is not visible.
Cause: The DoD fills the frame, canvas alpha is 0, or Foreground is connected.
Correction: Check Size 0.5, Edges Canvas, alpha 1 and an unconnected Foreground.
- The image’s physical size changed.
Cause: Scale or Resize was used instead of Transform.
Correction: Restore Transform and check the 1920×1080 raster size.
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 · Resolve 21 · setcanvascolor
Printed / PDF pages 2251, 2252, 2930, 2931; current supplied Inspector PNG labels reviewed separately.
Canvas color through Foreground
Supply an explicitly prepared donor color and inspect the manual-mode switch.
Starting conditions
DaVinci Resolve 21 · SetCanvasColor 21 · editorial reference 2026-10-18 · A Resolve 21 installation with SetCanvasColor available. · Target OS is not fixed; Resolve verification is pending.
1920 × 1080 · 24 fps · 120 frames · Consistent composition space, 1920×1080, 24 fps and alpha handling across every branch.
- Built-in Fusion nodes are used. Prepare sources as described by the lesson; no prebuilt media or .comp files are attached.
Source material
- SRC
Prepare an opaque 1920×1080 RGB frame with clearly identifiable central content and alpha 1 throughout.
Use a photograph or a prepared color test image, keeping a single still frame.
Nodes and connections
SRC— Image · MediaInXF— Smaller DoD · TransformBG— Donor color · BackgroundDONOR— Donor canvas · SetCanvasColorFX— CANVAS COLOR · SetCanvasColorOUT— Output · MediaOut
| Source | Destination | Data |
|---|---|---|
Image (SRC)Output | Smaller DoD (XF)Input | image |
Smaller DoD (XF)Output | CANVAS COLOR (FX)Input | image |
Donor color (BG)Output | Donor canvas (DONOR)Input | image |
Donor canvas (DONOR)Output | CANVAS COLOR (FX)Foreground | image |
CANVAS COLOR (FX)Output | Output (OUT)Input | image |
Graph output: Output (OUT)
Parameter values
- Smaller DoD (XF) / Controls / Center
[0.5,0.5]Keep the image centered in the frame.
- Smaller DoD (XF) / Controls / Use Size and Aspect
trueUse one scale factor for both axes.
- Smaller DoD (XF) / Controls / Size
0.5Set the visible scale for the reference view.
- Smaller DoD (XF) / Controls / Aspect
1Preserve the original aspect ratio.
- Smaller DoD (XF) / Controls / Angle
0Exclude rotation from the test.
- Smaller DoD (XF) / Controls / Edges
"Canvas"Explicitly select how exposed edges are filled.
- Donor color (BG) / Controls / Color
[0.15,0.3,0.85,1]The donor image color matches its canvas.
- Donor canvas (DONOR) / Controls / Red
0.15Set Red of the color outside the DoD.
- Donor canvas (DONOR) / Controls / Green
0.3Set Green of the color outside the DoD.
- Donor canvas (DONOR) / Controls / Blue
0.85Set Blue of the color outside the DoD.
- Donor canvas (DONOR) / Controls / Alpha
1Set Alpha of the color outside the DoD.
Reproduce the example
- Prepare the main MediaIn → Transform → FX branch and reduce it to Size 0.5 with Edges Canvas.
The exterior region must remain visible for the donor test.
Check: Main content and the DoD boundary are identifiable.
- Create a 1920×1080 Background with RGBA 0.15/0.3/0.85/1.
A uniform donor removes ambiguity in the color image.
Check: The donor’s entire visible area is blue and opaque.
- Feed Background into a separate SetCanvasColor DONOR and give it the same Red/Green/Blue/Alpha.
The donor explicitly has matching image color and canvas outside the DoD.
Check: DONOR is checked separately and its Foreground is disconnected.
- Connect DONOR.Output to FX.Foreground and FX.Output to MediaOut.
Foreground supplies the main node’s canvas-color source.
Check: The main image remains on Input and the donor goes only to Foreground.
- Open Controls specifically on FX: with Foreground connected, the tab should be empty.
This is how the node represents second-input color control.
Check: Manual color is edited on DONOR rather than on FX with Foreground connected.
- Inspect blue outside the main branch DoD and retention of its interior content.
The donor input does not perform normal foreground compositing.
Check: The donor image has not replaced visible content from the main Input.
- Temporarily disconnect Foreground, verify that manual Controls return, then reconnect DONOR.
This checks the cause of the empty tab and the final color path.
Check: The final state uses the donor; FX has no fictitious applied RGBA settings.
Expected result
- Output (OUT) · frame 0
The main branch’s exterior region uses the donor’s explicit blue color while retaining its content.
Alpha: The donor specifies alpha 1; inspect the actual result separately outside and inside the DoD.
When the result differs
- FX manual sliders disappeared.
Cause: A donor image is connected to Foreground.
Correction: Edit the donor or disconnect Foreground for manual mode.
- The donor image was expected to overlay the source.
Cause: SetCanvasColor Foreground was mistaken for Merge Foreground.
Correction: Use a separate Merge for regular compositing.
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 · Resolve 21 · setcanvascolor
Printed / PDF pages 2251, 2252, 2930, 2931; current supplied Inspector PNG labels reviewed separately.
DoD and a transparent hole
Distinguish canvas alpha’s effect on the exterior region from retained transparency inside the DoD.
Starting conditions
DaVinci Resolve 21 · SetCanvasColor 21 · editorial reference 2026-10-18 · A Resolve 21 installation with SetCanvasColor available. · Target OS is not fixed; Resolve verification is pending.
1920 × 1080 · 24 fps · 120 frames · Consistent composition space, 1920×1080, 24 fps and alpha handling across every branch.
- Built-in Fusion nodes are used. Prepare sources as described by the lesson; no prebuilt media or .comp files are attached.
Source material
- SRC
Prepare a 1920×1080 RGBA frame with an opaque outline and a fully transparent interior hole. In the Viewer verify that the hole lies inside the source’s rectangular DoD.
Use a PNG/EXR with suitable alpha; keep the source and reference-region coordinates identical throughout comparisons.
Nodes and connections
SRC— Outline and hole · MediaInXF— Smaller DoD · TransformFX— CANVAS COLOR · SetCanvasColorBG— Backdrop · BackgroundCOMP— Composite · MergeOUT— Output · MediaOut
| Source | Destination | Data |
|---|---|---|
Outline and hole (SRC)Output | Smaller DoD (XF)Input | image |
Smaller DoD (XF)Output | CANVAS COLOR (FX)Input | image |
CANVAS COLOR (FX)Output | Composite (COMP)Foreground | image |
Backdrop (BG)Output | Composite (COMP)Background | image |
Composite (COMP)Output | Output (OUT)Input | image |
Graph output: Output (OUT)
Parameter values
- Smaller DoD (XF) / Controls / Center
[0.5,0.5]Keep the image centered in the frame.
- Smaller DoD (XF) / Controls / Use Size and Aspect
trueUse one scale factor for both axes.
- Smaller DoD (XF) / Controls / Size
0.6Set the visible scale for the reference view.
- Smaller DoD (XF) / Controls / Aspect
1Preserve the original aspect ratio.
- Smaller DoD (XF) / Controls / Angle
0Exclude rotation from the test.
- Smaller DoD (XF) / Controls / Edges
"Canvas"Explicitly select how exposed edges are filled.
- CANVAS COLOR (FX) / Controls / Red
0Set Red of the color outside the DoD.
- CANVAS COLOR (FX) / Controls / Green
0Set Green of the color outside the DoD.
- CANVAS COLOR (FX) / Controls / Blue
0Set Blue of the color outside the DoD.
- CANVAS COLOR (FX) / Controls / Alpha
0Set Alpha of the color outside the DoD.
- Backdrop (BG) / Controls / Color
[0.12,0.3,0.65,1]A contrasting opaque backdrop makes transparent regions visible.
- Composite (COMP) / Controls / Blend
1Inspect the normal composite over a separate background.
Reproduce the example
- Inspect the RGBA outline with its transparent hole: the hole must lie inside the rectangular DoD.
Transparency and absence of data are tested in different regions.
Check: The interior hole, opaque outline and prospective exterior region are identified.
- Connect SRC → Transform → FX; set Transform Size 0.6, Center 0.5/0.5 and Canvas.
Reduction exposes space outside the DoD within the unchanged raster.
Check: The hole remains inside the DoD and exposed exterior margins lie outside it.
- Set FX to RGBA 0/0/0/0 and leave Foreground disconnected.
Explicitly restore transparent-black canvas.
Check: Manual controls are available and canvas alpha is 0.
- Feed FX into Merge Foreground, an opaque Background into Background, and the result into MediaOut.
One backdrop reveals both the transparent hole and exterior region.
Check: The background is visible through both transparent regions.
- Inspect alpha on FX, then change only FX Alpha to 1 while retaining black RGB.
The change should concern canvas outside the DoD.
Check: Exterior margins become opaque while the interior hole retains source transparency.
- Restore FX Alpha to 0 and compare alpha before and after Merge.
The opaque backdrop fills final alpha without changing the meaning of the FX check.
Check: FX shows transparent canvas and hole, while the final composite has opaque alpha.
- Record the three reference-region coordinates and the conclusion about canvas color’s region of effect.
This distinguishes the DoD from alpha values inside the image.
Check: The node is not described as filling every transparent pixel or cleaning all hidden RGB.
Expected result
- CANVAS COLOR (FX) · frame 0
The exterior and interior hole are transparent in the final state; the alpha 1 comparison changes only the region outside the DoD.
Alpha: Source alpha inside the DoD is retained, while canvas alpha is checked separately outside.
- Output (OUT) · frame 0
The outline appears over a blue backdrop, visible through both the hole and exterior region.
Alpha: Final composite alpha is opaque because of Background, not because FX filled the hole.
When the result differs
- The interior hole also appears filled.
Cause: An opaque composite is being inspected or the sampled point lies outside the DoD.
Correction: Open FX directly in alpha and inspect the DoD boundary and hole coordinate.
- Cleanup of hidden RGB throughout the image was expected.
Cause: The canvas region was confused with processing of defined pixels.
Correction: Diagnose RGB inside the DoD separately and choose an appropriate operation for the specific edge.
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 · Resolve 21 · setcanvascolor
Printed / PDF pages 2251, 2252, 2930, 2931; current supplied Inspector PNG labels reviewed separately.
Other outlines from the article
Color in the exposed frame area
Reduce the image DoD and make the area outside it white while retaining source content.
- MediaIn
- Transform
- SetCanvasColor
- MediaOut
Canvas color through Foreground
Supply an explicitly prepared donor color and inspect the manual-mode switch.
- MediaIn
- Transform
- Background
- SetCanvasColor
- SetCanvasColor
- MediaOut
DoD and a transparent hole
Distinguish canvas alpha’s effect on the exterior region from retained transparency inside the DoD.
- MediaIn
- Transform
- SetCanvasColor
- Background
- Merge
- MediaOut
Mistakes
- Assuming alpha 1 fills every transparent hole in the source.
- Expecting a visible change when the DoD occupies the entire visible frame.
- Using Foreground as a regular image-compositing input.
- Trying to edit manual color while Foreground is connected.
- Treating the node as universal cleanup of RGB beneath alpha.
Tips
- For the first exercise, reduce an opaque frame to Size 0.5 with Transform.
- Display the DoD and verify where the sampled region lies.
- Give the donor identical explicit image and canvas RGBA values, then inspect it separately.
- Inspect alpha immediately before Merge and separately after it.
Workflow order
- Load an opaque 1920×1080 frame and enable the DoD display.
- Connect MediaIn → Transform → SetCanvasColor → MediaOut; leave Foreground disconnected.
- In Transform set Center 0.5/0.5, Size 0.5, Aspect 1, Angle 0 and Edges Canvas.
- Set SetCanvasColor Red 1, Green 1, Blue 1 and Alpha 1.
- Compare a point inside the source content with a point outside the DoD but inside the frame.
- Inspect RGB and alpha separately, then temporarily use RGBA 0/0/0/0 and compare the exterior region.
- Restore white RGBA 1/1/1/1 and save the reference view with its DoD indicated.
