Brightness selects color
The mapper treats each source pixel's brightness as a position on the ordered custom gradient, then replaces that pixel with the color at the corresponding position. Dark, middle, and light regions therefore retain their relative tonal placement while receiving new colors. This is tonal recoloring, not a uniform color overlay or a hue-by-hue substitution.