Bint

2013-12-17 21:09:35 UTC

Hello, this is more of a math question,but maybe someone here can answer it.

I have an openGL circle which is a fan of triangles. The colors at each

point on the circle run around the spectrum in hue, so it is like a big

rainbow wheel.

Now, because of the way openGL interpolates the colors, the color range does

not look the way I want. For example, there's a lot more green than yellow,

and hardly any orange.

I was just wondering if there is a simple kind of equation that would let me

choose a few points on this range and "pump" them up, or maybe choose others

to "pinch" so that they take up less room on the wheel.

Maybe just a bunch of if then statements which re-scale specific value using

a simple x*x curve or something -- but I thought I would ask to see if

someone had a better idea.

Thanks

B

I have an openGL circle which is a fan of triangles. The colors at each

point on the circle run around the spectrum in hue, so it is like a big

rainbow wheel.

Now, because of the way openGL interpolates the colors, the color range does

not look the way I want. For example, there's a lot more green than yellow,

and hardly any orange.

I was just wondering if there is a simple kind of equation that would let me

choose a few points on this range and "pump" them up, or maybe choose others

to "pinch" so that they take up less room on the wheel.

Maybe just a bunch of if then statements which re-scale specific value using

a simple x*x curve or something -- but I thought I would ask to see if

someone had a better idea.

Thanks

B