Login Page - Create Account

Support Board


Date/Time: Sun, 28 Apr 2024 16:57:47 +0000



[Locked] - RGB colors

View Count: 1250

[2014-09-27 23:09:12]
marcovth - Posts: 61
Hello ...

Is there a function that would allow me to obtain the three R,G,B values in a given RGB color?

Thanks
[2014-09-28 05:21:48]
Sierra Chart Engineering - Posts: 104368
Yes, and you should be able to find this just by performing an Internet search.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2014-09-28 22:48:37]
marcovth - Posts: 61
This the way to make a given color a bit darker ...

int rc = GetRValue(bar.PrimaryColor); if(rc>=100) rc=rc-75;
int gc = GetGValue(bar.PrimaryColor); if(gc>=100) gc=gc-75;
int bc = GetBValue(bar.PrimaryColor); if(bc>=100) bc=bc-75;

bar.DataColor=RGB(rc,gc,bc);

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account