For some reason the switch statement always returns a value of zero, the input values are correctly matched in the switch but for some reason the return values default to zero, making colorx = 0. Thanks for help in advanced.For some reason the switch statement always ret