Skip to content

pixi-hm05 (player) / pixi-hm05 / StageOptions

Interface: StageOptions ​

How a page lays out the animation (owner 2026-10-30: the entry script's options; publish writes them from Properties → Stage).

Properties ​

PropertyTypeDescription
align?"center" | "topLeft"fixed stage: centred or top-left
autoScale?booleancanvas at the screen's device pixel ratio (default true)
backBuffer?booleandraw through a back buffer (default true): WebGL needs it for the advanced blend modes (overlay, soft light, colour dodge …) — without it they draw as Normal
background?string"RRGGBBAA"; absent = the loaded file's stage colour
canvas?string | HTMLElement | HTMLCanvasElementwhere to draw: a canvas, an element to put the canvas in, or a CSS selector of either; absent = a canvas filling the window
height?number-
loader?booleanshow a progress bar while loading (default true)
overflow?booleanfixed stage: also draw the art outside the stage rectangle
pauseOffscreen?booleanstop the clock and the drawing while the canvas is out of view (default true; offscreen.ts)
responsive?booleanno stage size: the canvas at 100%, origin top-left
scale?number | "none" | "fit"fixed stage: fit the view (aspect kept), keep 100%, or a number = that scale
width?numberthe stage's design size; absent = the loaded file's (play)

HereSplash — 2D animation for the web