dynamically loop through array of colours