Update to BitmapData.setHSL to follow conventions

This commit is contained in:
Robert Plante 2015-11-23 12:46:12 -05:00
parent e236cac1e6
commit 8f1450ecca

View file

@ -782,9 +782,10 @@ Phaser.BitmapData.prototype = {
* @return {Phaser.BitmapData} This BitmapData object for method chaining.
*/
setHSL: function (h, s, l, region) {
var bHaveH = typeof(h) === "number",
bHaveS = typeof(s) === "number",
bHaveL = typeof(l) === "number";
var bHaveH = h || h === 0;
var bHaveS = s || s === 0;
var bHaveL = l || l === 0;
if (!bHaveH && !bHaveS && !bHaveL)
{