Code for simulating the retina.