How to make colored smoke bombs

As a kid I set my friend's kitchen on fire melting potassium nitrate and sugar on the stove, so be careful when making these cool colored smoke bombs, which use oil pastels as pigment.