把ASCII图转成图片

把ASCII图转成图片

我们都知道有很多软件帮我们把图片转成ASCII码图,这里这个工具是帮我们把ASCII图转成漂亮的图片。这个开源的软件是一个用Java写成的一个命令行的工具。对于这个工具的目的,我个人以为如下:

  • 其一,可以把别人的ASCII图转成图片,于是更好看一些。
  • 其二,你可以使用ASCII码画图,而不需要使用图片编辑器。
  • 其三,因为是命令行,所以,你完全可以以脚本或程序的方法来作图了。

这个工具软件叫ditaa,其网址是:http://ditaa.sourceforge.net/

这个小工具支持一些语法定义,可以帮你更好地产生图片,如下所示:

圆角矩形

/--+
|  |
+--/
round corner demo

定义颜色

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

一些图示

名字 ASCII 图版 注释
文档
+-----+
|{d}  |
|     |
|     |
+-----+
表示文件
存储
+-----+
|{s}  |
|     |
|     |
+-----+
表示数据库或磁盘
输入
输出
+-----+
|{io} |
|     |
|     |
+-----+
输入/输出标志。

线条设置

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

线上的链接点

*----*
|    |      /--*
*    *      |
|    |  -*--+
*----*
point marker demo

文本

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

(转载本站文章请注明作者和出处 酷 壳 – CoolShell ,请勿用于任何商业用途)

好烂啊有点差凑合看看还不错很精彩 (11 人打了分,平均分: 3.36 )
Loading...

把ASCII图转成图片》的相关评论

  1. Neither he nor I had any idea why his camera was better (although it certainly was).
    Exploring on line about the camcorder on the internet is a single an additional effective way of heading about
    the camcorders. With that being said, the picture quality is amazing with this.

  2. s Italian Meatballs on Martha Stewart Live, the Daily Buzz and
    NJ12. Even if you don’t go over to Shop – At – Home first, and then
    to a store site from there, you will be redirected through Shop –
    At – Home. These include Lift Bridge, extension adaptors, pad adaptor kits,
    rolling drain pans, drop-in pins, bolts, replacement pads, and height
    extensions, among other parts.

  3. Bottega Veneta Shoe fashion manufacturer Ugg boot Queensland
    (world well-known branded associated with UGG trainers) possess distinct manufacturers intended for deviation choices
    incorporating classic UGG,Where To Buy Prada Bags UGG slippers, and so
    forth. The increased quantity means that you get
    more for your money. So save up some money not for Christmas this
    year but for Christmas next year.

  4. One of the best ghoul caves is in the extreme west of the Kazordoon wilderness, west of all of the
    dwarves themselves. The editor then goes on to say that it is
    “supposed to be an excellent electioneering potion inasmuch as it renders the heart stout and bold, at the same time that it fuddles the head. If a consumer is searching for that loan to acquire a vehicle then there can be other pursuits that they needs to be considering as well than just the borrowed funds interest.

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注