The simplest way is probably to just look at the actual texture being displayed, eg. textures[i]:GetTexture() and match it up to known textures for each gem or socket color.
However, I'm about 90% sure that all sockets on modern items are explicitly prismatic (any color gem activates the socket bonus) and have been that way since WoD launched, and I'm not sure why you'd care whether the gem in a socket was a blue, orange, or any other color, so I don't really see a point in figuring out what color the gem or socket is.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
|