The Shape Game Object now uses the AlphaSingle component, allowing you to uniformly set the alpha of the shape, rather than a quad alpha, which never worked for Shape objects.

This commit is contained in:
Richard Davey 2019-12-28 17:27:15 +00:00
parent 695cb7e4e2
commit 949d882788

View file

@ -20,7 +20,7 @@ var Line = require('../../geom/line/Line');
* @constructor
* @since 3.13.0
*
* @extends Phaser.GameObjects.Components.Alpha
* @extends Phaser.GameObjects.Components.AlphaSingle
* @extends Phaser.GameObjects.Components.BlendMode
* @extends Phaser.GameObjects.Components.ComputedSize
* @extends Phaser.GameObjects.Components.Depth
@ -41,7 +41,7 @@ var Shape = new Class({
Extends: GameObject,
Mixins: [
Components.Alpha,
Components.AlphaSingle,
Components.BlendMode,
Components.ComputedSize,
Components.Depth,