Arrr, no I'm passing RGB values from 0 to 255... thx for help, this should be the bug. /me goes color testing.
> I assume you got the code from here... > > http://www.cs.rit.edu/~ncs/color/t_convert.html > > ...or somewhere similar. > > Are you passing in RGB values from 0 to 1? (i.e.... > > float r, g, b; > float h, s, v; > > r = color.red / 255.0f; // make float 0.0 - 1.0 > g = color.green / 255.0f; > b = color.blue / 255.0f; > > UTIL_RGBtoHSV(r, g, b, h, s, v); > > ...)??? > > Jeffrey "botman" Broome _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders