Motion
Get Motion

ReferenceLayersBackgrounds

Mesh gradient

Colour points blended smoothly, drifting a little.

Kind
Layer · Backgrounds
Script name
meshgradient
Cost to draw
Moderate
The Mesh gradient layer with its default settings
The Mesh gradient layer with its default settings.

Mesh

SettingKindStarts atRange and notes
Columnscolumnswhole number32 to 5
Rowsrowswhole number32 to 5
Colourscolourspalette["#08090aff", "#0b2a3aff", "#123a24ff", "#7ce695ff", "#2b4a7–
Arrangementseedseed1–
Wanderwandernumber50%0% to 100%
Speedspeednumber0.4×0 to 3×
Smoothnesssmoothnumber75%0% to 100%
Swirlswirlnumber30%0% to 100%
Graingrainnumber15%0% to 100%

From a script

Every setting above can be changed by the scene's logic, by its key. Say the layer is called Mesh gradient:

scene.set("Mesh gradient", "wander", 1);scene.animate("Mesh gradient", "opacity", 0.5, 2);

Used in

The example scenes with a Mesh gradient layer in them. Each picture is the whole scene, not the layer alone: open one to see what the layer does in it.

What every layer has

Besides its own settings, every layer has its opacity, blend, placement, quick effects and an effects stack. They're listed once, on the layers page.