Is there a material function that works like Photoshop's Gradient Map?

Hmm I think linearinterpolation was the droid I was looking for