Implements colour palette, closes #3