Implement object literal constructor for Palette.