Skip to content

Instantly share code, notes, and snippets.

@edwinwebb
Created May 19, 2015 08:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edwinwebb/82089e29671bf2934367 to your computer and use it in GitHub Desktop.
Save edwinwebb/82089e29671bf2934367 to your computer and use it in GitHub Desktop.
PIXI.js Blend Modes
{
"NORMAL": 0,
"ADD": 1,
"MULTIPLY": 2,
"SCREEN": 3,
"OVERLAY": 4,
"DARKEN": 5,
"LIGHTEN": 6,
"COLOR_DODGE": 7,
"COLOR_BURN": 8,
"HARD_LIGHT": 9,
"SOFT_LIGHT": 10,
"DIFFERENCE": 11,
"EXCLUSION": 12,
"HUE": 13,
"SATURATION": 14,
"COLOR": 15,
"LUMINOSITY": 16
}
@Cristy94
Copy link

Use blend mode 20 for 1 - srcAlpha (eg: cutout from background image). http://www.html5gamedevs.com/topic/33389-mask-out-parts-of-an-image/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment