The simulation of an given type of colour-blindness seems to possible by doing some simple matrix multiplication for each pixel.
I have found
these Matrices on the internet, which are probably more accurate than anything you need for a fun application.