ascii to image with ditaa
1. samples
1.1. boxes
/--+ | | +--/
+--------------+ | | | Hello World! | | | +--------------+
+--------------+ | | | Hello World! | | | +--------------+
/-----------------\ | Summer Triangle | | o Vega | | o Deneb | | o Altair | \-----------------/
+-----+ +-----+ +-----+
|{d} | |{s} | |{io} |
| | | | | |
| | | | | |
+-----+ +-----+ +-----+
+---------+ | | | Foo | | | +----+----+---+ |Bar |Baz | | | | +----+--------+
+---------+ | | | Foo | | | +----+----+---+ |Bar |Baz | | | | +----+--------+
1.2. color boxes
/----\ /----\ |c33F| |cC02| | | | | \----/ \----/ /----\ /----\ |c1FF| |c1AB| | | | | \----/ \----/
/-------------+-------------\ |cRED RED |cBLU BLU | +-------------+-------------+ |cGRE GRE |cPNK PNK | +-------------+-------------+ |cBLK BLK |cYEL YEL | \-------------+-------------/
+---+-----+ +----------+
| cBLU | | {io} |
| Ext-Foo | | S-ATA |
| +-----+ | cFEA |
| |cPNK | +----------+
| | Foo |
+---+-----+
/-----------------\ | Things to do | | cGRE | | o Cut the grass | | o Buy jam | | o Fix car | | o Make website | \-----------------/
/-------------+-------------\ |cRED RED |cBLU BLU | +-------------+-------------+ |cGRE GRE |cPNK PNK | +-------------+-------------+ |cAAA AAA | +-------------+-------------+ |cCCC CCC | +-------------+-------------+ |cBLK BLK |cYEL YEL | \-------------+-------------/
1.3. line and boxes
*----* | | /--* * * | | | -*--+ *----*
----+ /----\ +----+
: | | : |
| | | |{s} |
v \-=--+ +----+
/--------\ +-------+
|cAAA +---+Version|
| Data | | V3 |
| Base | |cRED{d}|
| {s}| +-------+
\---+----/
+--------+---------+
| AAA | 111 |
+--------+---------+
| BBB | 222 |-----------\
+--------+---------+ |
|
v
+-------+
| |
+-------+
/--------------\ /--------------\
| Title 1 cGRE | | Title 2 cPNK |
| o Item 1 | | o Item 1 |
| o Item 2 | | o Item 2 |
\------+-------/ \------+-------/
| |
-------+--------------------+------------- Line
+------+ +-----+ +-----+ +-----+
|{io} | |{d} | |{s} | |cBLU |
| Foo +---+ Bar +---+ Baz +---+ Moo |
| | | | | | | |
+------+ +-----+ +--+--+ +-----+
|
/-----\ | +------+
| | | | c1AB |
| Goo +------+---=--+ Shoo |
\-----/ | |
+------+
+--------+ +-------+ +-------+
| | --+ ditaa +--> | |
| Text | +-------+ |diagram|
|Document| |!magic!| | |
| {d}| | | | |
+---+----+ +-------+ +-------+
: ^
| Lots of work |
+-------------------------+
1.4. other
+--------+ 0 | | <- start +--------+ 1 | | <- q scans from start to end +--------+ : ..... | +--------+ | | <- end +--------+ <-+ | | | +--------+ | rest of the : ..... | | allocated memory +--------+ | n | | | +--------+ <-+
0 n
+---+-----+--+--+--+
| | ... | | |\0|
+---+-----+--+--+--+
^ ^
| |
| +-- q moves from the
| end to the start
p moves from
start to the end
+------+----+----+----+----+----+----+ | xxxx | yy | zz | 00 | tt | 11 | ss | +------+----+----+----+----+----+----+ ^ ^ ^ ^ ^ ^ ^ | | | | | | | | | | | | | +--- storage registry | | | | | +-------- always set to 1 | | | | +------------- temp value | | | +------------------ always zeroed | | +----------------------- zero flag value | +---------------------------- y register +----------------------------------- x address
/----+-----------\ |cBLK|cRED APP | |ZDO +-----------+ | |cPNK APS | ZigBee | +-----------+ | |cGRE NWK | +----+-----------+ ------------------------------------- +----------------+ |cYEL MAC | +----------------+ IEEE 802.15.4 |cBLU PHY | \----------------/
2. PC environment
- Windows 7 64bit
- gnupack_devel-13.06-2015.11.08
- GNU Emacs 24.5.1 (i686-pc-cygwin) of 2015-11-08 on gnupack
- Org-mode version 8.2.10
- Windows java version "1.8.0_66"
- Java(TM) SE Runtime Environment (build 1.8.0_66-b18)
- Java HotSpot(TM) 64-Bit Server VM (build 25.66-b18, mixed mode)
- ditaa 0.9