Skip to content

Commit 9afaf5f

Browse files
committed
Moved RGB class
1 parent 7f3e679 commit 9afaf5f

2 files changed

Lines changed: 14 additions & 15 deletions

File tree

src/display/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ module.exports = {
1515
Bounds: require('./bounds'),
1616
Canvas: require('./canvas'),
1717
Color: require('./color'),
18-
Masks: require('./mask'),
19-
RGB: require('./RGB')
18+
Masks: require('./mask')
2019

2120
};
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
* @license {@link https://opensource.org/licenses/MIT|MIT License}
55
*/
66

7-
var Class = require('../utils/Class');
8-
var NOOP = require('../utils/NOOP');
7+
var Class = require('../../utils/Class');
8+
var NOOP = require('../../utils/NOOP');
99

1010
/**
1111
* @classdesc
1212
* The RGB class holds a single color value and allows for easy modification and reading of it,
1313
* with optional on-change callback notification and a dirty flag.
1414
*
1515
* @class RGB
16-
* @memberof Phaser.Display
16+
* @memberof Phaser.Layer3D.Math
1717
* @constructor
1818
* @since 3.50.0
1919
*
@@ -30,7 +30,7 @@ var RGB = new Class({
3030
/**
3131
* Cached RGB values.
3232
*
33-
* @name Phaser.Display.RGB#_rgb
33+
* @name Phaser.Layer3D.Math.RGB#_rgb
3434
* @type {number[]}
3535
* @private
3636
* @since 3.50.0
@@ -42,7 +42,7 @@ var RGB = new Class({
4242
*
4343
* The callback is sent the new color values as the parameters.
4444
*
45-
* @name Phaser.Display.RGB#onChangeCallback
45+
* @name Phaser.Layer3D.Math.RGB#onChangeCallback
4646
* @type {function}
4747
* @since 3.50.0
4848
*/
@@ -51,7 +51,7 @@ var RGB = new Class({
5151
/**
5252
* Is this color dirty?
5353
*
54-
* @name Phaser.Display.RGB#dirty
54+
* @name Phaser.Layer3D.Math.RGB#dirty
5555
* @type {boolean}
5656
* @since 3.50.0
5757
*/
@@ -64,7 +64,7 @@ var RGB = new Class({
6464
* Sets the red, green and blue values of this RGB object, flags it as being
6565
* dirty and then invokes the `onChangeCallback`, if set.
6666
*
67-
* @method Phaser.Display.RGB#set
67+
* @method Phaser.Layer3D.Math.RGB#set
6868
* @since 3.50.0
6969
*
7070
* @param {number} [red=0] - The red color value. A number between 0 and 1.
@@ -90,7 +90,7 @@ var RGB = new Class({
9090
* Compares the given rgb parameters with those in this object and returns
9191
* a boolean `true` value if they are equal, otherwise it returns `false`.
9292
*
93-
* @method Phaser.Display.RGB#equals
93+
* @method Phaser.Layer3D.Math.RGB#equals
9494
* @since 3.50.0
9595
*
9696
* @param {number} red - The red value to compare with this object.
@@ -111,7 +111,7 @@ var RGB = new Class({
111111
* then invokes the `onChangeCallback`, if set, passing in the
112112
* new RGB values.
113113
*
114-
* @method Phaser.Display.RGB#onChange
114+
* @method Phaser.Layer3D.Math.RGB#onChange
115115
* @since 3.50.0
116116
*/
117117
onChange: function ()
@@ -129,7 +129,7 @@ var RGB = new Class({
129129
* Changing this property will flag this RGB object as being dirty
130130
* and invoke the `onChangeCallback` , if set.
131131
*
132-
* @name Phaser.Display.RGB#r
132+
* @name Phaser.Layer3D.Math.RGB#r
133133
* @type {number}
134134
* @since 3.50.0
135135
*/
@@ -154,7 +154,7 @@ var RGB = new Class({
154154
* Changing this property will flag this RGB object as being dirty
155155
* and invoke the `onChangeCallback` , if set.
156156
*
157-
* @name Phaser.Display.RGB#g
157+
* @name Phaser.Layer3D.Math.RGB#g
158158
* @type {number}
159159
* @since 3.50.0
160160
*/
@@ -179,7 +179,7 @@ var RGB = new Class({
179179
* Changing this property will flag this RGB object as being dirty
180180
* and invoke the `onChangeCallback` , if set.
181181
*
182-
* @name Phaser.Display.RGB#b
182+
* @name Phaser.Layer3D.Math.RGB#b
183183
* @type {number}
184184
* @since 3.50.0
185185
*/
@@ -201,7 +201,7 @@ var RGB = new Class({
201201
/**
202202
* Nulls any external references this object contains.
203203
*
204-
* @method Phaser.Display.RGB#destroy
204+
* @method Phaser.Layer3D.Math.RGB#destroy
205205
* @since 3.50.0
206206
*/
207207
destroy: function ()

0 commit comments

Comments
 (0)