you could use entskill41-44 to pass virtual texturecoordinates for looking up the colors in a special texture (filled up with fields of different colors)

did you understand the idea behind this? i never did something like this, it was just what came to my mind first, but it should be possible