A localized region of pigment in some invertebrates and protozoa that detects changes in the quantity and quality of light.