Step-by-step explanation:
If potassium is burnt the ions go into a high state of energy. Once they cool, it gives off energy in the form of a visible spectrum which has a characteristic color Now, The cobalt glass blocks out yellow light, and potassium ion which is purple in color is visible.