There is a colouring-book example written by Marielle Lange, that enables a user to change the colour of different parts of an SVG (available here: http://bl.ocks.org/widged