Producing integrally coloured layers