Original Post
I have this linear rainbow gradient that I want to normalize so I can access it, but I don't really know how to do it. Like I want to pass a value, t=0 to 1, where 0 would return the starting color and t=1 would return the ending color. (gradient has more than two colors). No actual index array is being used. All I have is a couple defined colors that make up a linear gradient. All color values are floating-point. I'm trying to figure out something that will return a color given t=0 to 1.