What are the functions of rods and cones?

Rods and cones detect/sense light coming in to make colors. Your brain then converts it to an image.