← All operators

Gradient

Visual · gpu_visual

A clean 2-colour linear/radial gradient (a flat source, not a field).

generatorgradientcolorshader

Parameters

NameTypeRangeDefaultDescription
modechoice0 – 10Linear sweep, or radial from the centre (linear, radial)
cxfloat0 – 10.5
cyfloat0 – 10.5
anglefloat0 – 10sweep angle
scalefloat0 – 10.5
arfloat0 – 10.1
agfloat0 – 10.1
abfloat0 – 10.35
brfloat0 – 10.9
bgfloat0 – 10.2
bbfloat0 – 10.6

Ports

PortDirectionDescription
textureout

Backed by a bundled shader file: gradient.wgsl