They look for all the world like any other LED, though embedded in the plastic dome is an integrated circuit to do all that flashing work. There was a time though when a flashing LED was something ...
so the blinking only occurs in darkness. Of course, the resistor also has to have a sufficient view of the LED. You might use this as a safety light that only works in the dark. A simple circuit ...