art(
spec) ->sprite
Create a pseudo-pixel-art sprite from a char-map and palette
spec:
rows (array of equal-ish strings), palette (map char -> {r,g,b,a}; unmapped chars and spaces are transparent), scale (integer block size per cell, default 1), glitch_color (colour used for cells the :glitch method toggles on; defaults to the first palette entry).The art is rasterized once into its own surface and returned as a sprite, so
it blits/flips/tints/atlases like any other. A monochrome mask (one palette
entry of white) can be recoloured at blit time via the tint option.