A linear interpolation helper for colorscales with multiple colors