Which of the following is the function of the iris of the mammalian eye?