Rotary Switch Colour Selector help needed

fungus:
A switch like that needs an awful lot of Arduino pins to connect it (12 of them).

If pins are important you'd be much better off with a "rotary encoder". This will do the same thing but only needs two pins for the shaft rotation. You also get a built-in push button (push the shaft down) which you can connect to a third pin.

thank you that is what I need I was not sure now I known just got to work out how to do the data from that to it now