If I want to color a label with predefined colors in thinkscript, that's easy enough:
But what if I want to specify colors not predefined in thinkscript? Can I specify colors using hex code? I know thinkscript will accept RGB colors using
How can I specify non-predefined colors in this
Code:
AddLabel(yes, myVar, (if myVar > 2 then Color.GREEN else if myVar > 1 then Color.Yellow else Color.Orange));
But what if I want to specify colors not predefined in thinkscript? Can I specify colors using hex code? I know thinkscript will accept RGB colors using
CreateColor
, but Color.CreateColor(150, 220, 230)
is not valid.How can I specify non-predefined colors in this
AddLabel
statement?