phaser/wip/blendmodes/Darken.js
2018-01-25 15:48:33 +00:00

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;