Code for cycling through specified colour values

Hello,

Processing resources are here:

An array of colors:

:)