The color of a star depends on its