Regenerate the colour pattern at each new colour change