3 ms·
Haha thanks for posting this! It is a custom templating syntax I came up with to store the document data as compact as possible before encoding. You have: <do
by throwaway413 4y ago
Haha thanks for posting this! It is a custom templating syntax I came up with to store the document data as compact as possible before encoding.
You have:
<doc_config> | <block_data>
Where doc config is:
<palette_index> ; <background_index>
And block data is a list of blocks separated by | that have the following structure:
<block_type> : <block_value> ; <block_config>
And block_config is an additional set of characters separated by semicolon. Right now each block reads its metadata differently, so the order of the metadata options depends on the block they’re used for. I’d like to standardize them eventually. Most start with:
<background_color_index> ; <text_color_index>
The color indexes map to the index position of the given document palette selected. Every palette’s first two colors are white, and black.