Representing time as color

To represent time as color I will create a function within the draw loop that binds a color to the second it represents- for example, when the timer is on one second the color that it represents will be red and then when the timer is on two seconds the color will represent something different like orange. I will be fusing the interactive painting with this project so it has some functionality. The idea is a different color every time a second passes.