Just a simulation of a traffic signal The signal changes at intervals( I added false intervals so that you won't get bored.)