In accordance with the invention, it is possible to form colored homopolymers in which some of the amine functions are broken up by using dyes as described above, while the other amine functions are broken up by using alcohols such as butanol or ethanol.