0.3.2 RELEASE NOTES
Fizlet 0.3.2
By Chris Cooley ↗ · · CHANGELOG.md ↗
fizlet/sprite(new brick, ~1.3 KB gzip): the character layer's drawing primitive.sprites(defs, { palettes, cap, canvas })takes pixel art as data (rows of characters, a colour map whose values can be palette roles such asteam, frames, a pivot, an optional 1px outline) or a vectorpaint(), bakes each (sprite, frame, scale, palette) once into a capped cache (OffscreenCanvas when available) anddraw(ctx, id, frame, x, y, angle, scale, palette)blits it with no allocation.svg()/url()give the same pixels for characters placed in the page. A test fixture redraws the Sherman tank hull pixel for pixel.