I haven't looked at this code, but as a guess, a good NN could learn color names rather than having them explicitly defined, it could learn to compensate for lighting and white balance in photos, and it could recognize which color in a multi-color scene is the "main" color.
I would assume it's a practical (although not entirely useful) example of a hopfield network. If you look at the wikipedia page for it[1] there is little to no information on what you would use it for, seeing an example of practical usage is great for figuring out other practical applications for a hopfield network.