Overview
Creates a two-color linear or radial gradient image. In addition to serving as a base for skies and backgrounds, it is a fundamental continuous-value map—"top to bottom" or "center outward"—for mask weights, height maps, dither input, and more.
Usage tips
- For a pixel-art sky,
Linear(vertical) →dither(2–4-color palette) is the go-to two-node setup. - In black and white, it is a versatile weight map: a soft mask for
blend_by_mask, a Multiply asset that darkens toward the bottom, or a radial vignette. - A radial gradient with a small
radiusis a base for a spotlight.center_x/yuse relative coordinates from 0 to 1. - For a multicolor gradient, create grayscale values here and pass a palette to
gradient_mapinstead. This also makes the color count easier to manage.
Common pitfalls
- Banding is distracting: the continuous gradient itself is smooth; bands appear
after quantizing and may be the right pixel-art result. Use
ditherwhen smoothness should be preserved. - A diagonal gradient points in an unexpected direction: the fastest solution is
to rotate
anglewhile watching its angle knob.
Notes
- With
mode = Linear, the two colors are interpolated alonganglein image pixel space, so the specified angle matches the on-screen direction even on a non-square canvas. - With
mode = Radial, the two colors are interpolated outward fromcenter_x / center_yoverradius. radius = 1.0is based on half the shorter dimension.color_aandcolor_bcan be set as parameters or input ports. Input ports take priority.
Compatibility
- v2 evaluates Linear angles in pixel space instead of UV space. Diagonal gradients on non-square canvases therefore look different from v1.
Examples
- Create a horizontal background gradient.
- Use a radial gradient as the base for a mask or coordinate map.
- Feed it into
Palette QuantizeorDitherto create retro color steps.
Related nodes
gradient_map— color with a multicolor rampdither— the companion for a retro skynoise_generate— a nonuniform continuous-value mapblend— overlay a light/dark gradient in Multiply mode