Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 20:50:05 +0000



Post From: RGB colors

[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);