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 |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"image": {
"description": "A 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": {
"description": "Height in pixels.",
"maximum": 64,
"minimum": 1,
"type": "integer"
},
"palette": {
"ref": "#palette",
"type": "ref"
},
"rows": {
"description": "The grid, top row first: height rows of width characters each.",
"items": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"maxLength": 64,
"minLength": 1,
"type": "array"
},
"width": {
"description": "Width in pixels.",
"maximum": 64,
"minimum": 1,
"type": "integer"
}
},
"required": [
"width",
"height",
"palette",
"rows"
],
"type": "object"
},
"palette": {
"description": "The 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.",
"properties": {
"colors": {
"description": "Up to 35 colours as #rrggbb hex, in order: entry 1 is drawn by '1', entry 10 by 'a'.",
"items": {
"maxLength": 7,
"minLength": 7,
"type": "string"
},
"maxLength": 35,
"minLength": 1,
"type": "array"
},
"name": {
"description": "Optional name of the palette the colours came from, like \"field\". Informational: always draw from colors.",
"maxLength": 64,
"type": "string"
}
},
"required": [
"colors"
],
"type": "object"
}
},
"description": "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.",
"id": "net.weirdlings.pixel.defs",
"lexicon": 1
}