Synthesis and optoelectrochemical properties of a magenta-to-transmissive electrochromic polymer based on 3, 4-dioxythiophene