In an incandescent light bulb, electrons flow through wires to the bulb, where is passes through a filament, and the filament lights up.
Does this work because of several high energy electrons losing some of their energy to disturb the electromagnetic field, creating photons? The electrons just leave the filament afterward and are replaced by more high-energy electrons from the negative terminal. Or does it work differently?
As a secondary question, is there a type of light bulb that directly converts electron flow to photons?