Skip to content

Sprite.from method

Sprite › from

Unofficial

Creates a sprite from the given source.

Signature:

from(source: SpriteSource): Sprite

Parameters:

Parameter Type Description
source SpriteSource The sprite source.

Returns: SpriteThe created sprite.