Extends
- Text
Members
Shortcut for setAlpha
.
Shortcut for setColor
.
The current default color transforming filter
Shortcut for setAlign
.
Shortcut for setTint
.
Shortcut for setMask
.
Shortcut for setRenderable
.
Shortcut for setShadow
.
Shortcut for setStyle
.
Shortcut for setTransform
.
Methods
Setter for the alignment, also sets the anchor point to make sure the positioning is correct.
Name | Type | Description |
---|---|---|
align |
"center" | "right" | "left" | 0 | 1 | undefined |
Either center (0), right (1), left (-1) |
Returns:
Type | Description |
---|---|
this | This instance for chaining |
Chainable setter for alpha
Name | Type | Description |
---|---|---|
alpha |
number |
The alpha amount to use, from 0 to 1 |
Returns:
Type | Description |
---|---|
this | Instance for chaining |
Set additive and multiply color, tinting
Name | Type | Description |
---|---|---|
r |
number |
The multiply red value |
rA |
number |
The additive red value |
g |
number |
The multiply green value |
gA |
number |
The additive green value |
b |
number |
The multiply blue value |
bA |
number |
The additive blue value |
Returns:
Type | Description |
---|---|
this | Object for chaining |
Setter for mask to be able to chain.
Name | Type | Description |
---|---|---|
mask |
Graphics | Sprite |
The mask shape to use |
Returns:
Type | Description |
---|---|
this | Instance for chaining |
Function to set if this is renderable or not. Useful for setting masks.
Name | Type | Attributes | Description |
---|---|---|---|
renderable |
boolean |
<optional> |
Make renderable. Defaults to false. |
Returns:
Type | Description |
---|---|
this | This instance, for chaining. |
Initial setting of the drop shadow.
Name | Type | Description |
---|---|---|
color |
string | number |
The color to set |
angle |
number |
The angle of offset, in radians |
distance |
number |
The offset distance |
Returns:
Type | Description |
---|---|
this | This instance for chaining |
Set the style, a chainable version of style setter
Name | Type | Description |
---|---|---|
style |
any |
Returns:
Type | Description |
---|---|
this | This instance for chaining. |
Set the tint values by color.
Name | Type | Description |
---|---|---|
tint |
string | number |
The color value to tint |
Returns:
Type | Description |
---|---|
this | Object for chaining |