The Gradient and Gradient3 Procedural textures generate a smooth transition between two (Gradient) or three (Gradient3) given colors along the U direction, V direction or both. These parameters can be used as color texture or in grey scale as a bump, displacement, weight map or mask texture.
...
Given three colors, the Gradient3 Procedural creates a smooth transition between them along the U direction, V direction or both.
Examples of the Gradient3 procedural in use, applied to the U direction (left), V direction (middle) and both (right)
Gradient3 Procedural parameters
...