This is neat but there is something quite wrong with the protanomaly/protanopia simulation. Look how it effects blue:
normal: https://i.imgur.com/icgmrI6.png
protanopia simulation: https://i.imgur.com/3FKU4eT.png
It adds a ton of red instead of removing it. Blues should be largly unaffected by protanomaly (though purples will turn to blue)