mirror of
https://github.com/photonstorm/phaser
synced 2024-12-18 00:53:42 +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.
|
* @return {Phaser.BitmapData} This BitmapData object for method chaining.
|
||||||
*/
|
*/
|
||||||
setHSL: function (h, s, l, region) {
|
setHSL: function (h, s, l, region) {
|
||||||
var bHaveH = typeof(h) === "number",
|
|
||||||
bHaveS = typeof(s) === "number",
|
var bHaveH = h || h === 0;
|
||||||
bHaveL = typeof(l) === "number";
|
var bHaveS = s || s === 0;
|
||||||
|
var bHaveL = l || l === 0;
|
||||||
|
|
||||||
if (!bHaveH && !bHaveS && !bHaveL)
|
if (!bHaveH && !bHaveS && !bHaveL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue