Skip to content

anim-format (runtime format) / SpriteDef

Interface: SpriteDef ​

Properties ​

PropertyTypeDescription
atlasnumberindex into atlases (-1 for a vector sprite)
hnumber-
oxnumberlocal (document-unit) position of the texture's top-left corner; a sprite item's matrix maps this local space
oynumber-
r?numbertexels per local unit of THIS sprite (absent = AnimFile.resolution): Publish "Picture size" (owner 2026-11-13) stores each sprite at its largest on-screen size × a scale (spriteScreenScales); its local size = w / r.
vector?stringdrawn as vector paths: a key of AnimFile.vectors (owner 2026-10-30); the rectangle is then the art's bounds in local units (ox, oy = its top-left). Additive in v1 (older players draw nothing).
wnumber-
xnumberrectangle on the page, in texture pixels
ynumber-

HereSplash — 2D animation for the web