Sprite
Creates a Sprite
Sprites are the base for all textured objects that are rendered to the screen
API
Sprite Attributes
Name | Type | Default | Description |
---|---|---|---|
blend-mode |
| BLEND_MODES.NORMAL | The blend mode to be applied to the sprite. |
texture | string object | undefined | The texture to use on the Sprite. |
anchor |
| 0 | The anchor sets the origin point of the text. |
anchor-x | number | 0 | The x anchor sets the origin point of the text. |
anchor-y | number | 0 | The y anchor sets the origin point of the text. |
more props in Container Props and PIXI.Sprite
Sprite Events
Name | Type | Description |
---|---|---|
render | function | custom render function |
more events in Container Events