Used a loop to iterate through colours.