Color Index to color

 
In indicators we can define a color as the property of the plotted indicator.

How can I make color indexes to use in a graphic object?
 
ObjectSetInteger()

https://www.mql5.com/en/docs/objects/objectsetinteger

Can be used in mql4 or mql5
Documentation on MQL5: Object Functions / ObjectSetInteger
Documentation on MQL5: Object Functions / ObjectSetInteger
  • www.mql5.com
//|                                               Table of Web Colors| //|                         Copyright 2011, MetaQuotes Software Corp | //|                                        https://www.metaquotes.net | //| Array of web colors                                              |...
 
Keith Watford:

https://www.mql5.com/en/docs/objects/objectsetinteger

Can be used in mql4 or mql5

Don't works. I'm trying to use the 

#property indicator_color1 clrAqua,clrBlue

to set the color of the object using the index as in indicators, but is not working, because is not an indicator plot. The question is how to convert the (int)color index into (color) to use it in others objects that is not an indicator plot? I can use the (input) parameters, but the color tab is visible even if I do not declare the property.

void create()
{
   Label.Create(0,"label",0,0,0,0,0);
   ObjectSetInteger(0,"label",OBJPROP_COLOR,1);
   style();
   geometry();
}

Is it possible?