JJ - 2014-06-17

Hi. How does Stellarium calculate the exact color to make the stars basing it on its spectrum/color index (like what color to make the sun which is G2V or 0.656)? Thanks