The pupil of your eye expands as much as 45 percent when you see something pleasing. The function of the pupil is to regulate the amount of light that enters the eye. It appears black because most of the light gets absorbed by the tissues inside the eye.