color.gradient function

Calculate an arbitrary sequence of colors