PDA

View Full Version : RGB Color Options


whitmark
10-29-2007, 07:17 AM
Is there a way to tap into the Custom color palette vs the Web color palette when assigning colors to bars and backgrounds without the need to override the Plot method. I would like to display a marginally lighter darkdarkgreen color (RGB 0, 64, 0) as a backcolor on a black chart background but the default Web color palette that is available when using the Color method is not dark enough.

If this is not available, it would seem to be a good idea to add an RGBColor(R, G, B) method to the enhancement list for all colorable chart objects.

Thanks,

Whitmark

NinjaTrader_Dierk
10-29-2007, 07:32 AM
Not sure I follow. Please check out the Color class in .NET and how to set it to your desired RGB values.

whitmark
10-29-2007, 08:26 AM
ah . . . got it. Orignially I used intellisense and thought it was only offering color names, but now I see it. Thanks.

Example: BackColorAll = Color.FromArgb(0, 64, 0);

NinjaTrader_Dierk
10-29-2007, 08:30 AM
Glad it's resolved for you.