Gradient can also used with unequally spaced values, if those values are provided.  Here is one example: