UP | HOME

ascii to image with ditaa

目次

1 samples

1.1 boxes

/--+
|  |
+--/

2015-12-16-180323-circbox.png

+--------------+
|              |
| Hello World! |
|              |
+--------------+

2015-12-16-180312-hello-world.png

+--------------+
|              |
| Hello World! |
|              |
+--------------+

2015-12-16-180318-hello-world-round.png

/-----------------\
| Summer Triangle |
| o Vega          |
| o Deneb         |
| o Altair        |
\-----------------/

2015-12-16-182508-ditaa_example1.png

+-----+   +-----+   +-----+
|{d}  |   |{s}  |   |{io} |
|     |   |     |   |     |
|     |   |     |   |     |
+-----+   +-----+   +-----+

2015-12-16-180345-boxes.png

+---------+
|         |
| Foo     |
|         |
+----+----+---+
|Bar |Baz     |
|    |        |
+----+--------+

2015-12-16-175716-ditaa-simpleboxes.png

+---------+
|         |
| Foo     |
|         |
+----+----+---+
|Bar |Baz     |
|    |        |
+----+--------+

2015-12-16-175723-ditaa-simpleboxes-unsep.png

1.2 color boxes

/----\ /----\
|c33F| |cC02|
|    | |    |
\----/ \----/

/----\ /----\
|c1FF| |c1AB|
|    | |    |
\----/ \----/

2015-12-16-180328-colorbox.png

/-------------+-------------\
|cRED RED     |cBLU BLU     |
+-------------+-------------+
|cGRE GRE     |cPNK PNK     |
+-------------+-------------+
|cBLK BLK     |cYEL YEL     |
\-------------+-------------/

2015-12-16-180338-colormap.png

+---+-----+   +----------+
| cBLU    |   | {io}     |
| Ext-Foo |   |  S-ATA   |
|   +-----+   |   cFEA   | 
|   |cPNK |   +----------+
|   | Foo |   
+---+-----+

2015-12-16-180254-color-boxes.png

/-----------------\
| Things to do    |
| cGRE            |
| o Cut the grass |
| o Buy jam       |
| o Fix car       |
| o Make website  |
\-----------------/

2015-12-16-180405-things-to-do.png

/-------------+-------------\
|cRED RED     |cBLU BLU     |
+-------------+-------------+
|cGRE GRE     |cPNK PNK     |
+-------------+-------------+
|cAAA               AAA     |
+-------------+-------------+
|cCCC               CCC     |
+-------------+-------------+
|cBLK BLK     |cYEL YEL     |
\-------------+-------------/  

2015-12-16-180300-colors.png

1.3 line and boxes

*----*
|    |      /--*
*    *      |
|    |  -*--+
*----*

2015-12-16-180400-box-and-line.png

----+  /----\  +----+
    :  |    |  :    |
    |  |    |  |{s} |
    v  \-=--+  +----+

2015-12-16-180350-line-box-strage.png

/--------\   +-------+
|cAAA    +---+Version|
|  Data  |   |   V3  |
|  Base  |   |cRED{d}|
|     {s}|   +-------+
\---+----/

2015-12-16-180247-strage-line-box.png

+--------+---------+
| AAA    |  111    |
+--------+---------+
| BBB    |  222    |-----------\
+--------+---------+           |
                               |
                               v
           +-------+
           |       |
           +-------+

2015-12-16-182620-ditaa_example2.png

/--------------\     /--------------\
| Title 1 cGRE |     | Title 2 cPNK |
| o Item 1     |     | o Item 1     |
| o Item 2     |     | o Item 2     |
\------+-------/     \------+-------/
       |                    |
-------+--------------------+------------- Line

2015-10-13-151252-line-and-nodes.png

+------+   +-----+   +-----+   +-----+
|{io}  |   |{d}  |   |{s}  |   |cBLU |
| Foo  +---+ Bar +---+ Baz +---+ Moo |
|      |   |     |   |     |   |     |
+------+   +-----+   +--+--+   +-----+
                        |
           /-----\      |      +------+
           |     |      |      | c1AB |
           | Goo +------+---=--+ Shoo |
           \-----/             |      |
                               +------+

2015-12-16-175737-ditaa-seqboxes.png

+--------+   +-------+    +-------+
|        | --+ ditaa +--> |       |
|  Text  |   +-------+    |diagram|
|Document|   |!magic!|    |       |
|     {d}|   |       |    |       |
+---+----+   +-------+    +-------+
    :                         ^
    |       Lots of work      |
    +-------------------------+

2015-12-16-175747-ditaa-seqboxes.png

1.4 other

   +--------+
0  |        |  <- start
   +--------+
1  |        |  <- q  scans from start to end
   +--------+
   : .....  |
   +--------+
   |        |  <- end
   +--------+  <-+
   |        |    |
   +--------+    | rest of the
   : .....  |    | allocated memory
   +--------+    |
n  |        |    |
   +--------+  <-+

2015-12-16-180409-memory.png

 0               n
+---+-----+--+--+--+
|   | ... |  |  |\0|
+---+-----+--+--+--+
  ^        ^
  |        |
  |        +-- q moves from the
  |            end to the start
  p moves from
    start to the end

2015-12-16-180420-memory.png

+------+----+----+----+----+----+----+
| xxxx | yy | zz | 00 | tt | 11 | ss |
+------+----+----+----+----+----+----+
 ^      ^    ^    ^    ^    ^    ^ 
 |      |    |    |    |    |    |
 |      |    |    |    |    |    +--- storage registry
 |      |    |    |    |    +-------- always set to 1
 |      |    |    |    +------------- temp value
 |      |    |    +------------------ always zeroed 
 |      |    +----------------------- zero flag value
 |      +---------------------------- y register
 +----------------------------------- x address   

2015-12-16-180425-registry.png

/----+-----------\
|cBLK|cRED APP   |
|ZDO +-----------+
|    |cPNK APS   |   ZigBee
|    +-----------+
|    |cGRE NWK   |
+----+-----------+
-------------------------------------
+----------------+
|cYEL MAC        |
+----------------+   IEEE 802.15.4
|cBLU PHY        |
\----------------/

2015-12-16-175705-color-ieee-zigbee.png

2 PC environment

  • Windows 7 64bit
  • gnupackdevel-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.066"
    • Java(TM) SE Runtime Environment (build 1.8.066-b18)
    • Java HotSpot(TM) 64-Bit Server VM (build 25.66-b18, mixed mode)
  • ditaa 0.9

3 Refs

著者: clothoid

Created: 2021-10-09 Sat 11:11

Validate