swapping gl colors

high!
Gordon please don't hit me - my head was visited by a crazy idea again!
as i know, R4 operates with R, G and B colors separately. it means colorcycling (hueshifting or palette changing) can't be performed anyway.. but is it technically possible to change colorchannels order? not right now, R4 haven't suitable tools to do this, but can you develop additional gl function for swapping color components? this can be looks like gl.colorChannel(int channelNumber)=int newChannelNumber, where both ChannelNumber and newChannelNumber are numbers from 0 to 2 (0-red, 1-green, 2-blue). or like gl.colorChannel(int redChannel, int greenChannel, int blueChannel), where redChannel, greenChannel and blueChannel can be the number of existing color channels (again 0-red, 1-green, 2-blue).. maybe this looks crookedly for your eyes, but in other words i mean - is it possible to swap all red colors with greens (and all greens must become reds)?
thank you for your trying to understand me!
Gordon please don't hit me - my head was visited by a crazy idea again!

as i know, R4 operates with R, G and B colors separately. it means colorcycling (hueshifting or palette changing) can't be performed anyway.. but is it technically possible to change colorchannels order? not right now, R4 haven't suitable tools to do this, but can you develop additional gl function for swapping color components? this can be looks like gl.colorChannel(int channelNumber)=int newChannelNumber, where both ChannelNumber and newChannelNumber are numbers from 0 to 2 (0-red, 1-green, 2-blue). or like gl.colorChannel(int redChannel, int greenChannel, int blueChannel), where redChannel, greenChannel and blueChannel can be the number of existing color channels (again 0-red, 1-green, 2-blue).. maybe this looks crookedly for your eyes, but in other words i mean - is it possible to swap all red colors with greens (and all greens must become reds)?
thank you for your trying to understand me!
