Color Ramp

Recolors a texture by mapping one of its channels onto a gradient between two colors.

Outputs

NameTypeDescription
OutputTextureThe recolored texture.

Inputs

NameTypeDescription
InputTextureThe texture whose channel drives the gradient.

Parameters

NameTypeDescription
ChannelSwizzleWhich channel of the input picks the position on the gradient.
Color SpaceEnumThe color space the gradient is blended in, which changes the colors in between.Choices: RGB, HSV, HSL, OKLab
Color AColorThe color where the channel is 0.
Color BColorThe color where the channel is 1.
FormatadvancedEnumThe pixel format of the output. Auto is RGBA at the precision of the input.

The Color Ramp operator paints a texture with a gradient between two colors, using one channel of the input as the position on it. Use it to color a gray texture from Noise or Wave.

In RGB mode, the numbers are blended directly, which can pass through dull grays between two bright colors. In HSV and HSL mode, the blend goes the short way around the color wheel, so red to blue goes through purple. In OKLab mode, the blend has even steps in lightness and no dull middle, which suits most gradients.

See also Noise, Wave.

Keywords: gradient, colorize, tint, map, palette, lut, heat map