The pupil is indeed the small gap or opening located at the center of the iris of the eye. The pupil regulates the amount of light that enters the eye by changing size: it becomes larger in dim lighting conditions to let in more light and smaller in bright light to reduce light entry. The iris, which is the colored part of the eye, controls the size of the pupil.