Skip to content

anim-format (runtime format) / AtlasPage

Interface: AtlasPage ​

Properties ​

PropertyTypeDescription
alpha?stringa picture holding only the transparency (its alpha channel) of an opaque image (a JPEG): the player draws image then keeps it only where this is opaque, stretched over it. Additive in v1.
heightnumber-
imagestringfile name relative to the JSON (or a data: / blob: URL); PNG, JPEG, WebP, or .ktx2 (Publish › KTX2: Basis UASTC holding PREMULTIPLIED colour, edges a multiple of 4; pixi-hm05 transcodes it with ktx/libktx.* next to the JSON)
scale?numberimage pixels per texel (< 1: the page was stored smaller; > 1: a picture shipped as its original file, shown smaller than its pixels; the player gives the texture this resolution). Absent = 1. Additive in v1.
widthnumbersprite rectangles are in these texel units (the page as packed)

HereSplash — 2D animation for the web