Color changing switch?

how can i create a color changing switch

how do i create a system that changes the rgb values
of an io colorbox

hi arpaci , i made this quick patch , tell me if you understand and if it respond to your question , cu ;D

ColorSwith.v4p (27.8 kB)