Trying to find controller actions...

To switch colors use a int variable as color index, add a switch on int for that color index in your logic to set the right color: