Skip to main content

Function: createSprite()

createSprite(width, height, renderable): Sprite

Defined in: rendering/utilities/create-sprite.ts:11

Creates a sprite using the provided material and render context.

Parameters​

width​

number

The width of the sprite.

height​

number

The height of the sprite.

renderable​

Renderable

The renderable to use for the sprite.

Returns​

Sprite

The created sprite.