Created
May 19, 2015 08:29
-
-
Save edwinwebb/82089e29671bf2934367 to your computer and use it in GitHub Desktop.
PIXI.js Blend Modes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use blend mode 20 for
1 - srcAlpha
(eg: cutout from background image). http://www.html5gamedevs.com/topic/33389-mask-out-parts-of-an-image/