Documentation / Node reference / tex nodes

tex/Ramp

Creates a gradient between two colours.

Primitives

Creates a linear, radial or angular gradient, for a mask or a background. start and end go from 0 to 1 across the image, from its top left corner. The default, black on the left to white on the right, is a soft left to right mask.

Parameters

Name Type What it does
type UInt8 LINEAR · RADIAL · ANGULAR Shape of the gradient.
angle Float Turns a LINEAR gradient, in degrees, counter-clockwise.
start Vector2 Where the gradient starts. The centre for RADIAL and ANGULAR.
end Vector2 Where the gradient ends. Sets the radius or starting direction.
softness Float 1 blends evenly. 0 gives a hard edge half way.
startColor Color4 Colour at start. Alpha blends too.
endColor Color4 Colour at end. Alpha blends too.
resolution Vector2UInt Width and height in pixels.

Examples

Scenes you can open in the editor that teach this node.

See also

This page is generated from the engine, so it describes the release you can download. The same text is in the editor's Help panel next to the node itself.