Calculate colour of merge product

Merge product is now coloured according to average of constituents'
colours.