bicolor led color problem

Do you have a bi-colour LED where there are only two pins, or are there three (i.e. one is a common anode/cathode to the other two)?

What is the delay(100) for? Seems kind of out of place in the sequence of events.