Color cycling is easier in another color space, see - Need help with RGB rainbow colors - #16 by robtillaart - Programming Questions - Arduino Forum - for code
Color cycling is easier in another color space, see - Need help with RGB rainbow colors - #16 by robtillaart - Programming Questions - Arduino Forum - for code