This commit is contained in:
Richard Davey 2023-06-11 22:37:06 +01:00
parent 8c44dffcc7
commit fb3c85888b
3 changed files with 16 additions and 16 deletions

View file

@ -38,10 +38,10 @@ var FX_CONST = require('./const');
* @param {number} [color1=0xff0000] - The first gradient color, given as a number value. * @param {number} [color1=0xff0000] - The first gradient color, given as a number value.
* @param {number} [color2=0x00ff00] - The second gradient color, given as a number value. * @param {number} [color2=0x00ff00] - The second gradient color, given as a number value.
* @param {number} [alpha=0.2] - The alpha value of the gradient effect. * @param {number} [alpha=0.2] - The alpha value of the gradient effect.
* @param {number} [fromX=0] - The horizontal position the gradient will start from. This value is noralized, between 0 and 1 and is not in pixels. * @param {number} [fromX=0] - The horizontal position the gradient will start from. This value is normalized, between 0 and 1, and is not in pixels.
* @param {number} [fromY=0] - The vertical position the gradient will start from. This value is noralized, between 0 and 1 and is not in pixels. * @param {number} [fromY=0] - The vertical position the gradient will start from. This value is normalized, between 0 and 1, and is not in pixels.
* @param {number} [toX=0] - The horizontal position the gradient will end at. This value is noralized, between 0 and 1 and is not in pixels. * @param {number} [toX=0] - The horizontal position the gradient will end at. This value is normalized, between 0 and 1, and is not in pixels.
* @param {number} [toY=1] - The vertical position the gradient will end at. This value is noralized, between 0 and 1 and is not in pixels. * @param {number} [toY=1] - The vertical position the gradient will end at. This value is normalized, between 0 and 1, and is not in pixels.
* @param {number} [size=0] - How many 'chunks' the gradient is divided in to, as spread over the entire height of the texture. Leave this at zero for a smooth gradient, or set higher for a more retro chunky effect. * @param {number} [size=0] - How many 'chunks' the gradient is divided in to, as spread over the entire height of the texture. Leave this at zero for a smooth gradient, or set higher for a more retro chunky effect.
*/ */
var Gradient = new Class({ var Gradient = new Class({
@ -83,7 +83,7 @@ var Gradient = new Class({
this.size = size; this.size = size;
/** /**
* The horizontal position the gradient will start from. This value is noralized, between 0 and 1 and is not in pixels. * The horizontal position the gradient will start from. This value is normalized, between 0 and 1 and is not in pixels.
* *
* @name Phaser.FX.Gradient#fromX * @name Phaser.FX.Gradient#fromX
* @type {number} * @type {number}
@ -92,7 +92,7 @@ var Gradient = new Class({
this.fromX = fromX; this.fromX = fromX;
/** /**
* The vertical position the gradient will start from. This value is noralized, between 0 and 1 and is not in pixels. * The vertical position the gradient will start from. This value is normalized, between 0 and 1 and is not in pixels.
* *
* @name Phaser.FX.Gradient#fromY * @name Phaser.FX.Gradient#fromY
* @type {number} * @type {number}
@ -101,7 +101,7 @@ var Gradient = new Class({
this.fromY = fromY; this.fromY = fromY;
/** /**
* The horizontal position the gradient will end. This value is noralized, between 0 and 1 and is not in pixels. * The horizontal position the gradient will end. This value is normalized, between 0 and 1 and is not in pixels.
* *
* @name Phaser.FX.Gradient#toX * @name Phaser.FX.Gradient#toX
* @type {number} * @type {number}
@ -110,7 +110,7 @@ var Gradient = new Class({
this.toX = toX; this.toX = toX;
/** /**
* The vertical position the gradient will end. This value is noralized, between 0 and 1 and is not in pixels. * The vertical position the gradient will end. This value is normalized, between 0 and 1 and is not in pixels.
* *
* @name Phaser.FX.Gradient#toY * @name Phaser.FX.Gradient#toY
* @type {number} * @type {number}

View file

@ -581,10 +581,10 @@ var FX = new Class({
* @param {number} [color1=0xff0000] - The first gradient color, given as a number value. * @param {number} [color1=0xff0000] - The first gradient color, given as a number value.
* @param {number} [color2=0x00ff00] - The second gradient color, given as a number value. * @param {number} [color2=0x00ff00] - The second gradient color, given as a number value.
* @param {number} [alpha=0.2] - The alpha value of the gradient effect. * @param {number} [alpha=0.2] - The alpha value of the gradient effect.
* @param {number} [fromX=0] - The horizontal position the gradient will start from. This value is noralized, between 0 and 1 and is not in pixels. * @param {number} [fromX=0] - The horizontal position the gradient will start from. This value is normalized, between 0 and 1, and is not in pixels.
* @param {number} [fromY=0] - The vertical position the gradient will start from. This value is noralized, between 0 and 1 and is not in pixels. * @param {number} [fromY=0] - The vertical position the gradient will start from. This value is normalized, between 0 and 1, and is not in pixels.
* @param {number} [toX=0] - The horizontal position the gradient will end at. This value is noralized, between 0 and 1 and is not in pixels. * @param {number} [toX=0] - The horizontal position the gradient will end at. This value is normalized, between 0 and 1, and is not in pixels.
* @param {number} [toY=1] - The vertical position the gradient will end at. This value is noralized, between 0 and 1 and is not in pixels. * @param {number} [toY=1] - The vertical position the gradient will end at. This value is normalized, between 0 and 1, and is not in pixels.
* @param {number} [size=0] - How many 'chunks' the gradient is divided in to, as spread over the entire height of the texture. Leave this at zero for a smooth gradient, or set higher for a more retro chunky effect. * @param {number} [size=0] - How many 'chunks' the gradient is divided in to, as spread over the entire height of the texture. Leave this at zero for a smooth gradient, or set higher for a more retro chunky effect.
* *
* @return {Phaser.FX.Gradient} The Gradient FX Controller. * @return {Phaser.FX.Gradient} The Gradient FX Controller.

View file

@ -68,7 +68,7 @@ var GradientFXPipeline = new Class({
this.size = 0; this.size = 0;
/** /**
* The horizontal position the gradient will start from. This value is noralized, between 0 and 1 and is not in pixels. * The horizontal position the gradient will start from. This value is normalized, between 0 and 1 and is not in pixels.
* *
* @name Phaser.Renderer.WebGL.Pipelines.FX.GradientFXPipeline#fromX * @name Phaser.Renderer.WebGL.Pipelines.FX.GradientFXPipeline#fromX
* @type {number} * @type {number}
@ -77,7 +77,7 @@ var GradientFXPipeline = new Class({
this.fromX = 0; this.fromX = 0;
/** /**
* The vertical position the gradient will start from. This value is noralized, between 0 and 1 and is not in pixels. * The vertical position the gradient will start from. This value is normalized, between 0 and 1 and is not in pixels.
* *
* @name Phaser.Renderer.WebGL.Pipelines.FX.GradientFXPipeline#fromY * @name Phaser.Renderer.WebGL.Pipelines.FX.GradientFXPipeline#fromY
* @type {number} * @type {number}
@ -86,7 +86,7 @@ var GradientFXPipeline = new Class({
this.fromY = 0; this.fromY = 0;
/** /**
* The horizontal position the gradient will end. This value is noralized, between 0 and 1 and is not in pixels. * The horizontal position the gradient will end. This value is normalized, between 0 and 1 and is not in pixels.
* *
* @name Phaser.Renderer.WebGL.Pipelines.FX.GradientFXPipeline#toX * @name Phaser.Renderer.WebGL.Pipelines.FX.GradientFXPipeline#toX
* @type {number} * @type {number}
@ -95,7 +95,7 @@ var GradientFXPipeline = new Class({
this.toX = 0; this.toX = 0;
/** /**
* The vertical position the gradient will end. This value is noralized, between 0 and 1 and is not in pixels. * The vertical position the gradient will end. This value is normalized, between 0 and 1 and is not in pixels.
* *
* @name Phaser.Renderer.WebGL.Pipelines.FX.GradientFXPipeline#toY * @name Phaser.Renderer.WebGL.Pipelines.FX.GradientFXPipeline#toY
* @type {number} * @type {number}