>Well, I just looked into the LViewPro and 2.0 and see that the model they propose are for colours only. There is a difficulty to select gray colour in the colours selector they provided. I do nto know about later versions. When you switch to the HSL mode, I see that vertically they change Hue and horisontally both Sat and Lum values are changed. This produces a table of colours that is not complete (no grey colours with all 3 values equal). For example, I do not see a way there to pick up colour RGB(128,128,128) that is a pure grey colour. You can add a line of grey colours to your table separartely.
I tried your routine. It seems to work. However, for the RGB values, I get values like 9,7,7 followed by 18,14, followed by 28,20, ... As you can see, only a few have 3 values. Is it normal I have two values for some of them?