Sprite.from method
Sprite › from
Unofficial
Creates a sprite from the given source.Signature:
from(source: SpriteSource): SpriteParameters:
| Parameter | Type | Description |
|---|---|---|
| source | SpriteSource | The sprite source. |
Returns: Sprite — The created sprite.
Sprite › from
Unofficial
Creates a sprite from the given source.Signature:
from(source: SpriteSource): SpriteParameters:
| Parameter | Type | Description |
|---|---|---|
| source | SpriteSource | The sprite source. |
Returns: Sprite — The created sprite.