An image plus a uniform grid of cells, built by Image:atlas. Cells are indexed from 0 in row-major order. Use atlas:sprite(index) to make a drawable appearance.
local canvas = datumhue.draw.new({ width = 320, height = 240 })
canvas:mount({ width = 320, height = 240 })
-- The built-in font: one cell per character, from the space on.local atlas = datumhue.image.font()
Build a Sprite appearance for cell index (0-based, row-major).
Example
-- Cell 33 is "A": its character code minus 32.local letter = atlas:sprite(33, {
color = datumhue.color("#e69875"),
size = datumhue.math.vec2(48, 78),
})
canvas:sprite(letter)
Build a reusable SpriteClips clip-set from this atlas. defs maps each clip name to its clip definition; frames are 0-based atlas cell indices. Bind it to a sprite with clips:bind(sprite) — one clip-set drives many sprites, each with its own playhead.