mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 22:52:14 +00:00
10 lines
185 B
JavaScript
10 lines
185 B
JavaScript
|
/**
|
||
|
* Combines the source and backdrop colors and returns their value minus 255.
|
||
|
*/
|
||
|
var Subtract = function (a, b)
|
||
|
{
|
||
|
return Math.max(0, a + b - 255);
|
||
|
};
|
||
|
|
||
|
module.exports = Subtract;
|