List of utility methods to do Color Combine
int | combine(int r, int g, int b) combine int rgb = (r & 0xFF) << 16 | (g & 0xFF) << 8 | b & 0xFF; return rgb; |
int | combine(int r, int g, int b, int a) Combines the R,G,B,A values back into single integer. return (r << 16) + (g << 8) + (b << 0) + (a << 24);
|
int | combineColors(int fgColor, int bgColor, int pctFg) combine Colors int resColor = 0; if (pctFg < 1) { resColor = bgColor; } else if (pctFg == 100) { resColor = fgColor; } else { int pctBg = 100 - pctFg; resColor = ... |