4 ms·
I assumed "Plain text with lines" meant SVG, didn't even notice it was JSON instead of a <path> at first. The SVG spec is huge, but the parts for lines and circ
by phabricator 4y ago
I assumed "Plain text with lines" meant SVG, didn't even notice it was JSON instead of a <path> at first. The SVG spec is huge, but the parts for lines and circles isn't.
- akkartik 4y agoHonestly, I just went with JSON because there's a nice Lua library for it (thank you https://github.com/rxi/json.lua https://github.com/rxi/json.lua). I haven't thought about the file format much so far, just the experience of writing in it as if it's the "ground truth". We all seldom open our text files in a hex editor.
- phabricator 4y agoI actually suggested SVG out of laziness, er, efficiency in the first place, saves you from have to write your own "spec" if there are good SVG libraries from Lua. (Just a thought, thanks for sharing your work.)