Fix for #75: support array of swatches.

Specify swatches as an array of {name: '000000', r: 0, g: 0, b: 0}.