mirror of
https://github.com/photonstorm/phaser
synced 2024-11-30 00:21:04 +00:00
10 lines
235 B
JavaScript
10 lines
235 B
JavaScript
|
/**
|
||
|
* Phoenix blend mode. This subtracts the lighter color from the darker color, and adds 255, giving a bright result.
|
||
|
*/
|
||
|
var Phoenix = function (a, b)
|
||
|
{
|
||
|
return Math.min(a, b) - Math.max(a, b) + 255;
|
||
|
};
|
||
|
|
||
|
module.exports = Phoenix;
|