Coloured glass can actually be produced in a number of ways, but there are three main methods. The first involves introducing transition metal or rare earth metal oxides to the glass. This is usually achieved by the addition of metal oxides to the glass. The metal ions absorb certain wavelengths of light, varying depending on the metal, leading to the appearance of colour. There’s more on what causes the colour of transition metal ions here.