What determines the color of stars?

The temperature determines the color of the star!:)