mirror of
https://github.com/photonstorm/phaser
synced 2024-12-12 14:22:54 +00:00
9 lines
151 B
JavaScript
9 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;
|