@Bio7, thank you for the answer. My code is like below;
// @ColorRGB(label = "Color of 1st label: ", value = "yellow") lcolor1
// @ColorRGB(label = "Color of 2nd label: ", value = "blue") lcolor2
// @ColorRGB(label = "Color of 3rd label: ", value = "red") lcolor3
colorlist=newArray(3);
colorlist[0]=lcolor1;
colorlist[1]=lcolor2;
colorlist[2]=lcolor3;
Then I am drawing some text, with a color that depends on an array of unique elements.
objectlist="lemon", "sky", "fire");
If (a comparison result) comes out as lemon, then set foreground color to yellow, then draw text with the color from colorlist, use element at same array index.
colorlist=("yellow", "blue", "red");
But unfortunately, wth the color selection method above (content of lcolor1), colorlist[0] value is not “yellow”; but 255,255,0 which cannot be fed into any color setting command.
With your method, after user select the color from big palette, should I convert these values to arrays, too?
colorlist0=(255,255,0);
colorlist1=(0,0,255);
colorlistx=(143,254,27);
etc..