Color Ramp
Recolors a texture by mapping one of its channels onto a gradient between two colors.
Outputs
| Name | Type | Description |
|---|---|---|
| Output | Texture | The recolored texture. |
Inputs
| Name | Type | Description |
|---|---|---|
| Input | Texture | The texture whose channel drives the gradient. |
Parameters
| Name | Type | Description |
|---|---|---|
| Channel | Swizzle | Which channel of the input picks the position on the gradient. |
| Color Space | Enum | The color space the gradient is blended in, which changes the colors in between.Choices: RGB, HSV, HSL, OKLab |
| Color A | Color | The color where the channel is 0. |
| Color B | Color | The color where the channel is 1. |
| Formatadvanced | Enum | The 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.
Keywords: gradient, colorize, tint, map, palette, lut, heat map