Skip to content

Commit

Permalink
Merge pull request #6545 from rexrainbow/circle-effect-background-alpha
Browse files Browse the repository at this point in the history
Add backgroundAlpha property in Circle effect  controller
  • Loading branch information
photonstorm authored Jul 21, 2023
2 parents c678807 + 3410f8e commit 36d658e
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion src/fx/Circle.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,28 @@ var Circle = new Class({
color[2] = (value & 0xFF) / 255;
}

}
},

/**
* The alpha of the background, behind the texture, given as a number value.
*
* @name Phaser.FX.Circle#backgroundAlpha
* @type {number}
* @since 3.60.0
*/
backgroundAlpha: {

get: function ()
{
return this.glcolor2[3];
},

set: function (value)
{
this.glcolor2[3] = value;
}

}
});

module.exports = Circle;

0 comments on commit 36d658e

Please sign in to comment.