mirror of
https://github.com/photonstorm/phaser
synced 2025-03-04 07:17:23 +00:00
10 lines
151 B
JavaScript
10 lines
151 B
JavaScript
|
/**
|
||
|
* Selects the darker of the backdrop and source colors.
|
||
|
*/
|
||
|
var Darken = function (a, b)
|
||
|
{
|
||
|
return (b > a) ? a : b;
|
||
|
};
|
||
|
|
||
|
module.exports = Darken;
|