Skip to content

Commit a1273e4

Browse files
committed
Added ERASE blend mode
1 parent 7d20211 commit a1273e4

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

src/gameobjects/components/BlendMode.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ var BlendMode = {
3737
* * ADD
3838
* * MULTIPLY
3939
* * SCREEN
40+
* * ERASE
4041
*
4142
* Canvas has more available depending on browser support.
4243
*

src/renderer/canvas/utils/GetBlendModes.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ var GetBlendModes = function ()
3838
output[modes.SATURATION] = (useNew) ? 'saturation' : so;
3939
output[modes.COLOR] = (useNew) ? 'color' : so;
4040
output[modes.LUMINOSITY] = (useNew) ? 'luminosity' : so;
41+
output[modes.ERASE] = 'destination-out';
4142

4243
return output;
4344
};

0 commit comments

Comments
 (0)