mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 05:03:37 +00:00
9 lines
185 B
JavaScript
9 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;
|