Skip to content

Instantly share code, notes, and snippets.

@granoeste
Created May 15, 2012 03:09
Show Gist options
  • Save granoeste/2698817 to your computer and use it in GitHub Desktop.
Save granoeste/2698817 to your computer and use it in GitHub Desktop.
[Android] Color Blend
public static int colorBlend(final int c1, final int c2) {
return ((c1 & 0xfefefefe) >> 1) + ((c2 & 0xfefefefe) >> 1) + (c1 & c2 & 0x01010101);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment