The module ascii2svg is a fork of the go https://github.com/asciitosvg/asciitosvg library rewritten in Java. It enables to convert a string graph in SVG.

For example:

.-------------.  .--------------.
|[Red Box]    |  |[Blue Box]    |
'-------------'  '--------------'

[Red Box]: {"fill":"#aa4444"}
[Blue Box]: {"fill":"#ccccff"}

Will be rendered as:

svg%3E%0A

More on the syntax there: https://github.com/asciitosvg/asciitosvg .