2 or 3 LED colors on a single digital pin

Which is provided when the digital pin goes low.