An image using a loaded texture created by add.image
reference to the render object
Parameter | Type | Description |
---|---|---|
pixi | Pixi.js object | reference to the pixi render object (internal) |
type | String | the type of the Entity |
reference to id of the render object.
Parameter | Type | Description |
---|---|---|
id | String | reference to id of the render object |
position of the render object
Parameter | Type | Description |
---|---|---|
x | Number | x coordinate of the render object |
y | Number | y coordinate of the render object |
rotation of the render object
Parameter | Type | Description | Default |
---|---|---|---|
rotation | Number | rotation of the render object | 0 |
the position and rotation point of the render object
Parameter | Type | Description | Default |
---|---|---|---|
x | Number | x coordinate of the anchor point | 0 |
y | Number | y coordinate of the anchor point | 0 |
skew amount of the render object (in radians)
Parameter | Type | Description | Default |
---|---|---|---|
x | Number | ammount of skew in the x-axis | 0 |
y | Number | ammount of skew in the y-axis | 0 |
alpha of the render object
Parameter | Type | Description | Default |
---|---|---|---|
alpha | Number | alpha of the render object | 1 |
the scale of the render object
Parameter | Type | Description |
---|---|---|
width | Number | width of the render object |
height | Number | height of the render object |
zIndex of the render object
Parameter | Type | Description | Default |
---|---|---|---|
zIndex | Number | zIndex of the render object | 0 |
tint of the render object
Parameter | Type | Description | Default |
---|---|---|---|
tint | Hex | tint of the render object | 0xffffff |