Skip to content

Instantly share code, notes, and snippets.

@AriTheElk
Created May 4, 2013 16:21
Show Gist options
  • Save AriTheElk/5517980 to your computer and use it in GitHub Desktop.
Save AriTheElk/5517980 to your computer and use it in GitHub Desktop.
Mathematical algorithm for mixing two RGB colors together.
[R, G, B] = min(ColorOneRed + ColorTwoRed, 255), min(ColorOneGreen + ColorTwoGreen, 255), min(ColorOneBlue+ ColorTwoBlue, 255)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment