LogoPixi’VN
indexFunctions

Function: showImageContainer()

> showImageContainer(alias, imageUrls, options?): Promise<ImageContainer>

Defined in: src/canvas/functions/image-container-utility.ts:44

Add a list of images in the container, after that, the images are added and shown in the canvas.

Parameters

alias

string

The unique alias of the image. You can use this alias to refer to this image

imageUrls

string[]

The url of the image.

options?

ImageContainerOptions<ImageSprite<ImageSpriteMemory>>

The options of the image.

Returns

Promise<ImageContainer>

A promise that is resolved when the image is loaded.

Example

let bunny = showImageContainer("bunny", ["https://pixijs.com/assets/bunny-body.png", "https://pixijs.com/assets/bunny-eyes.png"])