At first I thought it would be something like this but with mechanical control of the markers to change the filament colour as it feeds.
It is an original idea, but it's limited to painting the sides of the print, right?