Methods
-
bottom() → {number}
-
The sum of the y and height properties. Changing the bottom property of a Rectangle object has no effect on the x, y and width properties, but does change the height property.
- Source:
Returns:
- Type
- number
-
bottom(value)
-
The sum of the y and height properties. Changing the bottom property of a Rectangle object has no effect on the x, y and width properties, but does change the height property.
Parameters:
Name Type Description value
number - Source:
-
HEXtoRGB(hex) → {array}
-
Converts a hex color number to an [R, G, B] array
Parameters:
Name Type Description hex
number - Source:
Returns:
- Type
- array
-
render(displayObject, position, clear)
-
This function will draw the display object to the texture. If the display object is a Group or has children it will draw all children as well.
Parameters:
Name Type Argument Default Description displayObject
DisplayObject The display object to render this texture on.
position
Phaser.Point <optional>
Where to draw the display object.
clear
boolean <optional>
false If true the texture will be cleared before the displayObject is drawn.
- Source:
-
renderXY(displayObject, x, y, clear)
-
This function will draw the display object to the texture at the given x/y coordinates. If the display object is a Group or has children it will draw all children as well.
Parameters:
Name Type Argument Default Description displayObject
DisplayObject The display object to render this texture on.
x
number The x coordinate to draw the display object at.
y
number The y coordinate to draw the display object at.
clear
boolean <optional>
false If true the texture will be cleared before the displayObject is drawn.
- Source:
-
right() → {number}
-
The sum of the x and width properties. Changing the right property of a Rectangle object has no effect on the x, y and height properties. However it does affect the width property.
- Source:
Returns:
- Type
- number
-
right(value)
-
The sum of the x and width properties. Changing the right property of a Rectangle object has no effect on the x, y and height properties. However it does affect the width property.
Parameters:
Name Type Description value
number - Source: