Color Changing Canvases

I'm trying to make a colorblind color solver for all 4 types of colorblindness for Science Fair. Can anyone tell me a code to change the color they tap?

So after they take a picture, they can tap on their image and get the RGB, and the color name & color. Am I able to change the color based on their colorblindness setting based on RGB? if not is there another code I can use?

For what it's worth, here is a table of color names and their numerical color codes.
color_codes.txt (2.4 KB)

From your block diagram, it's hard to read the various types of color vision defect names.

Could you type them into a post, to make searching for them on the Web easier?

If you have links to the various ways they transform color perception, that would be helpful.

Given all that, is your app meant to demonstrate the defects, or to detect them?

My app is meant to demonstrate & help people with Protan, Deutan, Tritan, & Monochromacy see.

I'm basing it on this website, where it helps tell the colors, but not how to change RGB per colorblindness (Main Problem). I don't know how to do that, but want to for my project. (And Video)

https://www.sciencebuddies.org/science-fair-projects/project-ideas/CompSci_p075/computer-science/color-detector-app-for-colorblind-people