3 ms·
Consider a run-length encoded image. One possible implementation is to have a command, a length value, then a sequence of 1 or more pixels. A "run" command's se
by khedoros 10y ago
Consider a run-length encoded image. One possible implementation is to have a command, a length value, then a sequence of 1 or more pixels. A "run" command's sequence would just be the color to repeat, while a "dump" command's sequence would be a number of pixels to output directly into the image.
In a sense, that's a piece of source code that would "compile" into an image, if you take a loose interpretation of what it means to "compile".
For other examples that may count, LaTeX and Postscript are both Turing-complete languages, usually compiled into a typeset document and a vector graphic image, respectively.
You might call them Domain-Specific Languages, in general (the DSL mentioned by the sibling comment).