Skip to content
ClassAnimation & Atlases@public

FlxFrame

One named animation frame backed by a lazily resolved Pixi texture view.

ts
export declare class FlxFrame

Constructors

ts
constructor(options: { index: number; name?: string | null; texture: Texture | (() => Texture); duration?: number; width?: number; height?: number; })

Constructs a new instance of the FlxFrame class

ParameterTypeDescription
options{ index: number; name?: string | null; texture: Texture | (() => Texture); duration?: number; width?: number; height?: number; }-

Properties

PropertyModifiersTypeDescription
duration-number-
heightreadonlynumber-
indexreadonlynumber-
name-string | null-
texturereadonlyTexture-
widthreadonlynumber-

Released under the MIT License.