When borax is heated, the reaction that takes place is :
$$\ce{Na_2B_4O_7.10H_2O \ce{->} 2NaBO_2 + B_2O_3 + 10H_2O}$$ And the compounds that are responsible for the colors are $\ce{M_x(BO_2)_y}$ salts, like $\ce{Co(BO_2)_2}$. My question is, does this $\ce{BO_2}$ come from $\ce{NaBO_2}$ or from $\ce{B_2O_3}$ or do both of them react?