[visad] how custom color table works in visAD?

Hello all,

I am using a custom color table in visAD.
 I know how to use it,But don't know how it works internally

suppose i have values between 1-100 (my Range in array),
then how the number of element passed in mycolorTable will affect the

Eg :

 myColorTable = new float[][]{

{0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f}, //red component
{0.0f, 0.0f, 1.0f, 0.0f, 1.0f, 0.0f, 1.0f, 1.0f}, //green component
{0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f, 0.0f, 1.0f}}; //blue component


{ 0,255,0,0,255,0,255,192,100,255},
{ 0,0,255,0,255,255,0,192,0,255},
{ 0,0,0,255,0,255,255,192,,100,255}

In first example I have passed 8 arguments and in second 10 arguments are
passed.How these will be mapped or allocated to the value of my data array
which ranges between 1 and 100.
Thank you,
Devanshi U. Prajapati