2023-02-13 21:21:18 +00:00
|
|
|
/**
|
|
|
|
* @author Richard Davey <rich@photonstorm.com>
|
|
|
|
* @copyright 2013-2023 Photon Storm Ltd.
|
|
|
|
* @license {@link https://opensource.org/licenses/MIT|MIT License}
|
|
|
|
*/
|
|
|
|
|
|
|
|
var BaseFX = require('./BaseFX');
|
|
|
|
var Class = require('../../utils/Class');
|
|
|
|
var FX_CONST = require('./const');
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @classdesc
|
|
|
|
*
|
|
|
|
* @class Vignette
|
|
|
|
* @extends Phaser.GameObjects.FX.BaseFX
|
|
|
|
* @memberof Phaser.GameObjects.FX
|
|
|
|
* @constructor
|
|
|
|
* @since 3.60.0
|
|
|
|
*
|
|
|
|
* @param {Phaser.GameObjects.GameObject} gameObject - A reference to the Game Object that has this fx.
|
|
|
|
*/
|
|
|
|
var Vignette = new Class({
|
|
|
|
|
|
|
|
Extends: BaseFX,
|
|
|
|
|
|
|
|
initialize:
|
|
|
|
|
|
|
|
function Vignette (gameObject)
|
|
|
|
{
|
|
|
|
BaseFX.call(this, FX_CONST.VIGNETTE, gameObject);
|
|
|
|
|
2023-02-14 15:49:33 +00:00
|
|
|
this.x = 0.5;
|
|
|
|
this.y = 0.5;
|
|
|
|
this.radius = 0.5;
|
|
|
|
this.strength = 0.5;
|
2023-02-13 21:21:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
module.exports = Vignette;
|