mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 14:40:38 +00:00
9 lines
154 B
JavaScript
9 lines
154 B
JavaScript
/**
|
|
* Selects the lighter of the backdrop and source colors.
|
|
*/
|
|
var Lighten = function (a, b)
|
|
{
|
|
return (b > a) ? b : a;
|
|
};
|
|
|
|
module.exports = Lighten;
|