Temperature affects a star size and the light it emits and it also affects it luminosity. When a star is cold it usually emits a blue color and when its hot it emits a reddish color. For example, up close to the sun it appears red, this is because the temperature is hot.
.
Hope this helps :)