Take a pic with the camera slightly shifted to the left, tint it blue, shift it slightly right and tint it red and then just mix the two pictures (even just add them together since the color components are entirely separated). This should of course be done automatically, like when you're taking a DOF screenshot.
Not many might find use for it, but it can't be that hard to implement, can it?