Need help with RGB rainbow colors

Certainly. All you need to do is choose that "another color" and choose which direction around the color wheel you want to go, then write the sequence(s) to show the intermediate values.