The relationship between a color value and a name is a learned and subjective one. A person comes to the conventional associations – a general sense of what values are called “red,” for instance – by repeated exposure.
Hardware Version source code for Processing (requires Standard_Firmata to be loaded on the Arduino)
Since the hardware version requires… the hardware pictured above, I’m also including a software simulation version:
Software Simulator (version 4).
Commands:
COLORNAME RVAL GVAL BVAL (example: “red 255 0 0”)
guess RVAL GVAL BVAL (example: “guess 255 80 80”)
rename NEWNAME (works on previous guess. example: “rename pink”)
show NAME (example “show red”)