Hy guys,
Got a problem with a rainbow color spectrum based on one integer. So what I want there is a number from 0-x for example 0-1000. I want to create a rainbow in these interval. What I know is minimum should be 0 the middle should be green and the maximum should be red. The process should be something like this:
red: 0 green: 0 blue: 255->
red: 0 green: 255 blue: 255->
red: 0 green: 255 blue: 0->
red: 255 green: 255 blue: 0->
red: 255 green: 0 blue: 0->
Any idea for an algorithm? The color is always changeing during the runtime, so what I need is not a cycle that draws a rainbow.
Anyway Thanks, Adam