One feels blinded for a short while on coming out of a dark room because rhodopsin in the rod cells, which senses light, is broken down to reduce the perception of light by the cells. Also, the pupil is constricted to reduce the amount of light entering the eyes.