When a photon of light interacts with any obstacle, part of the energy is reflected back in the form of a color, and depending upon the absorption of energy by the atoms of the wire some of that energy can displace an electron and cause an electrical current.