Namespace: utils

PIXI.animate.utils

For keyframe conversions

Methods

PIXI.animate.utils.deserializeKeyframes (keyframes, Resulting) static

Convert serialized array into keyframes "0x100y100 1x150" to: { "0": {"x":100, "y": 100}, "1": {"x": 150} }

Name Type Description
keyframes String
Resulting Object

keyframes

PIXI.animate.utils.deserializeShapes (str, Resulting) static

Convert serialized shapes into draw commands for PIXI.Graphics.

Name Type Description
str String
Resulting Array

shapes map

PIXI.animate.utils.fillFrames (timeline, startFrame, duration) static

Fill frames with booleans of true (showing) and false (hidden).

Name Type Description
timeline
startFrame int

The start frame when the timeline shows up

duration int

The length of showing

PIXI.animate.utils.hexToUint () static

Convert the Hexidecimal string (e.g., "#fff") to uint

PIXI.animate.utils.upload (renderer, clip, done) static

Upload all the textures and graphics to the GPU.

Name Type Description
renderer PIXI.WebGLRenderer

Render to upload to

clip PIXI.DisplayObject

MovieClip to upload

done function

When complete