A polymer switching between all RGB colors, black and transmissive states was synthesized. The polymer (PTBT) is soluble, processable, both p- and n-dopable, fluorescent and its properties in entire spectrum offer potential uses in NIR devices, LEDs and solar cells. PTBT possesses almost all properties in a single polymer for optoelectronic applications.