# ANI fixtures (tools/fixtures.py): animated cursors assembled here around ICO / CUR frames written by Pillow (32 x 32 # RGBA; the CUR ones patched from Pillow's ICO with hotspots): with seq + rate chunks, with neither, with INFO text, and # one with AF_ICON clear (UNSUPPORTED). References: Pillow's decode of every frame, the step order and delays here. # tests/gen/ani.luau { cases = { { name, data, w, h, steps = { { frame, delay } }, frames = { rgba }, hotspot?, # title?, unsupported? } } } import importlib.util, os, struct def _load(n): spec = importlib.util.spec_from_file_location(n, os.path.join(os.path.dirname(os.path.abspath(__file__)), n + ".py")) m = importlib.util.module_from_spec(spec) spec.loader.exec_module(m) return m R, T = _load("_raster_ref"), _load("_tex_reference") def chunk(cid, data): return cid + struct.pack("