Short introduction

Lines

The - and | are normally used for lines. _ and ~ can also be used. They are slightly longer lines than the -. _ is drawn a bit lower and ~ a bit upper. = gives a thicker line. The later three line types can only be drawn horizontally.

---- |         ___  ~~~|
     | --  ___|        |    ===
                       ~~~
_images/aafig-b772b13c981ad6a62f51a75ce1630449966a970f.svg

It is also possible to draw diagonal lines. Their use is somewhat restricted though. Not all cases work as expected.

_images/aafig-1fef6c0a5b8d74348625f29f568945eedfb40b3f.svg

With rounded flag:

_images/aafig-62a17986bbf2e3f91b11cbea662568051e28ac30.svg

And drawing longer diagonal lines with different angles looks ugly...

_images/aafig-511896e27a36954000569f0a0587c14ffafa1cfa.svg _images/aafig-10c063e72984693c222d94159ba566c9b7dadf50.svg

Arrows

Arrow styles are:

--->   | | | | | |
---<   | | | | | |
---o   ^ V v o O #
---O
---#
_images/aafig-d94228f7c3c25c989c38916796b572e0758f523a.svg

Boxes

Boxes are automatically draw when the edges are made with +, filled boxes are made with X (must be at least two units high or wide). It is also possible to make rounded edges in two ways:

+-----+   XXX  /--\     --   |
|     |   XXX  |  |    /    /
+-----+   XXX  \--/   |   --
_images/aafig-3a89cdf95d7477d60c6696b46209afba0996d92f.svg

Fills

Upper case characters generate shapes with borders, lower case without border. Fills must be at least two characters wide or high. (This reduces the chance that it is detected as Fill instead of a string)

_images/aafig-357608b3eb119057a7af6e04b621a790be62042c.svg

Complex shapes can be filled:

_images/aafig-4666caeaffe997683fc58ebfb50aaf7cf40924c7.svg

Text

The images may contain text too. There are different styles to enter text:

direct

By default are repeated characters detected as fill:

Hello World  dd d
                d
_images/aafig-72e7944784532af12020095261b072b4f48ffb59.svg

quoted

Text between quotes has priority over any graphical meaning:

"Hello World"  dd d
                  d
_images/aafig-d7463be9423fe33197c72119e77a705131143ad4.svg

", ' and \` are all valid quotation marks. The quotes are not visible in the resulting image. This not only disables fills (see below), it also treats -, | etc. as text.

textual option

The :textual: option disables horizontal fill detection. Fills are only detected when they are vertically at least 2 characters high:

Hello World  dd d
                d
_images/aafig-6dff305031e4d819fbaa92514191ef84dc0c3678.svg

Other

* { }
_images/aafig-40bc72233f42082e5dd697450f0da4714d37588d.svg