The Gradient Map command maps the equivalent grayscale range of an image to the colors of a specified gradient fill. If you specify a two‑color gradient fill, for example, shadows in the image are mapped to one of the endpoint colors of the gradient fill, highlights are mapped to the other endpoint color, and midtones are mapped to the gradations in between.