mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 15:12:18 +00:00
Update to BitmapData.setHSL to follow conventions
This commit is contained in:
parent
e236cac1e6
commit
8f1450ecca
1 changed files with 4 additions and 3 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue