These are created by coloring the glass with a dopant; which is often a metal like cobalt (blue) or chromium (green).