net.weirdlings.pixel.defs
Shared definitions for small pixel-art images stored as text grids, so a drawing lives in the record itself and any app can render it without a blob.
Details · defs
| Kind | defs |
|---|---|
| Authority | pixel.weirdlings.net |
| Commit rev | 3n34kclynhk2r |
| Indexed |
#image
objectA pixel-art image: a palette and a grid of rows, top row first. In each row, '.' is a transparent pixel and the characters 1-9 then a-z pick palette colours 1 to 35, in that order (so '1' is the first colour, 'a' the tenth). Every row has exactly width characters and there are exactly height rows.
Properties
Height in pixels.
minimum: 1maximum: 64
The grid, top row first: height rows of width characters each.
minLength: 1maxLength: 64
itemsstring
minLength: 1maxLength: 64
Width in pixels.
minimum: 1maximum: 64
#palette
objectThe colours an image's characters index into, carried in the record so the image renders the same everywhere, even if the palette it came from changes later.