At least it seems like magic.
This is a diagram of the front part of the eye...
As shown by the diagram before we can get to the rods and cones we have to go through the eye's pigmented cells...