Answer:
When turning electrical energy into light energy.
Step-by-step explanation:
When the filament heats up and becomes red-hot as a result of opposing and resisting electricity, it begins to glow and therefore turns electrical energy into light energy.