I have several RGB images in a game that are used as "references" to create other images. Below there are three examples of references: "R-male.png", "Fish.png", "Arrows.png". For each mask, I show three result images with altered colors.
I found out that RGB are replaced with specific colors. For instance, the green is replaced with "bronze", "silver" and "gold", while the blue is replaced with "red" in the "R-male.png" and with "pink" in the "Arrows.png".
How can I do that?
First: Is that a way to compare each result image with the reference and found out exactly what is the color code for "bronze", "silver", "gold", "pink" and "red"?
Second: With the right color codes, how can I use photoshop, Python or other tool to transform the reference exactly in those images?