Before fusion starts, large stars will still get quite hot. The color temperature (the color of light produced by black body radiation, from a surface of a given temperature) is determined by the surface temperature, and most of the star's mass will heat up quite a bit due to gravitational collapse, even before the core "ignites". The core has to reach millions of degrees before fusion can begin. So in a way, the heat has to come first, then fusion, and then it becomes a self sustaining reaction.