Added a function to compute the RGB/ColorFA and a test.