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

See

for some sample color picker apps.

I read the starter tutorial you linked, and I assume you have an aia and want to fill in

  • the part where you can get a better name for the RGB color value of the chosen picture pixel. That's easily done in a dozen blocks and a given color name/code file.
  • some kind of interactive user test where he is pointed to a random spot on a picture and asked to recreate that color on one of the sample color pickers in the above color FAQ?

You will need to use lists and tables in this project.

Read the starter topics, then look through the advanced list blocks.

Another thought before retiring for the night...

AI2 has a text to speech component.

That would help with real time color identification, given the color name.

Sorry, I'm still confused. :frowning:

I'll look into the name per pixel, it will save a lot of time. Thank you.

For the 2nd canvas, I want to be able to turn on/off a mode where users can see how people see the pixel color based on the colorblind setting under it.

For Example: I click on the cube, and Canvas 2 gives the color. Are users able to change how they see Canvas 2? The sliders are the severity.

That would be nice! Thank you. Merry Christmas! Hope you can answer when you are free and tysm for your help today.

When you say "the part where you can get a better name for the RGB color value of the chosen picture pixel. That's easily done in a dozen blocks and a given color name/code file." are you able to send me the code for that if possible please, thank you!

Posting a starter aia file would give me a head start when I get around to it.

I looked through my collection before starting to code, and I found this color matching game.
It might be useful in diagnosing color blindness.
image

color_match.aia (4.9 KB)

Says couldnt load project, but i'll also look into that code. Are you also working on changing canvas 2 based on the filter if possible? No rush btw. But sorry for late response.

Here's a color guessing game with lookup of closest color.
See the app About for the color table source.
image
color_names_match_game.aia

Everything is proceduralized, for reusability.

(I added a (Cheat) button because I am really bad at this game.)

Which project?

If you want to change the colours in an image in a canvas, you might use this method:

the projects you linked. it just says couldnt load or just shows a bunch of symbols

is it possible to modify it based on colorblindess?

You could do a find and replace by pixel colour value, might be slow on "bigger" images.

I'm just finding a single pixel they tap on. the whole image would be nice. But I don't have lots of coding skill unless it's easy.

so with the codes you gave, it should help me with the names of colors based on the pixel tapped?