linux ascii艺术与ansi艺术

Linux终端下的ASCII艺术

http://zh.wikipedia.org/zh-tw/%E9%9B%BB%E5%AD%90%E9%81%8A%E6%88%B2%E5%8F%B2  电子游戏史

http://chen-xiao.com/?p=26

http://www.ithome.com/html/it/66015.htm

http://os.51cto.com/art/201312/424971.htm

以上是三个列表,以下是代码源

http://ascii.gallery/

http://www.figlet.org/

http://www.nog.net/~tony/warez/cowsay-3.03.tar.gz

wget http://www.robobunny.com/projects/asciiquarium/asciiquarium.tar.gz

http://ce.sysu.edu.cn/hope2008/beautydesign/ShowArticle.asp?ArticleID=10786  等宽字体

wget ftp://ftp.figlet.org/pub/figlet/program/unix/figlet-2.2.5.tar.gz
tar zxvf figlet-2.2.5.tar.gz
cd figlet-2.2.5
less README
make;make install

上面的是默认路径,如果要更改,阅读源码目录的Readme文件,修改Makefile文件。

[root@250-shiyan figlet]# pwd
/usr/local/share/figlet

[root@250-shiyan figlet]# figlet ei -f small
     _
 ___(_)
/ -_) |
\___|_|

[root@250-shiyan figlet]# figlet ei -f slant
        _
  ___  (_)
 / _ / /
/  __/ /
\___/_/
[root@84-monitor bin]# ./showfigfonts
banner :

#####    ##   #    # #    # ###### #####
#    #  #  #  ##   # ##   # #      #    #
#####  #    # # #  # # #  # #####  #    #
#    # ###### #  # # #  # # #      #####
#    # #    # #   ## #   ## #      #   #
#####  #    # #    # #    # ###### #    #



big :
 _     _
| |   (_)
| |__  _  __ _
| '_ | |/ _` |
| |_) | | (_| |
|_.__/|_|\__, |
          __/ |
         |___/


block :

_|        _|                      _|
_|_|_|    _|    _|_|      _|_|_|  _|  _|
_|    _|  _|  _|    _|  _|        _|_|
_|    _|  _|  _|    _|  _|        _|  _|
_|_|_|    _|    _|_|      _|_|_|  _|    _|




bubble :
  _   _   _   _   _   _
 /  /  /  /  /  / 
( b | u | b | b | l | e )
 \_/ \_/ \_/ \_/ \_/ \_/

[root@84-monitor bin]# ./figlist
Default font: standard
Font directory: /usr/games/share/figlet
Figlet fonts in this directory:
banner
big
block
bubble
digital
ivrit
lean
mini
mnemonic
script
shadow
slant
small
smscript
smshadow
smslant
standard
term
Figlet control files in this directory:
646-ca2
修改样式

[root@84-monitor games]# bin/figlet -c -f lean wo


                         _/      _/      _/    _/_/
                        _/      _/      _/  _/    _/
                         _/  _/  _/  _/    _/    _/
                          _/      _/        _/_/


[root@84-monitor games]# bin/figlet -c -f lean wo|tr ' _/' ' ()'


                         ()      ()      ()    ()()
                        ()      ()      ()  ()    ()
                         ()  ()  ()  ()    ()    ()
                          ()      ()        ()()

[root@84-monitor games]# bin/figlet -c -f banner wo

                                 #    #  ####
                                 #    # #    #
                                 #    # #    #
                                 # ## # #    #
                                 ##  ## #    #
                                 #    #  ####

[root@84-monitor games]# bin/figlet -c -f banner wo|tr '#' '?'

                                 ?    ?  ????
                                 ?    ? ?    ?
                                 ?    ? ?    ?
                                 ? ?? ? ?    ?
                                 ??  ?? ?    ?
                                 ?    ?  ????

[root@84-monitor games]# bin/figlet -c -f banner wo|tr '#' '@'

                                 @    @  @@@@
                                 @    @ @    @
                                 @    @ @    @
                                 @ @@ @ @    @
                                 @@  @@ @    @
                                 @    @  @@@@

大家如果有用各种term软件上过BBS的话,对ANSI art 和ASCII art一定不会陌生,很多大学BBS也都有ANSI版。

如果再深入了解一下的话,其实这种艺术形式最早始于打印机的普及。当时很多人就用打印机上的字符和换行控制来进行艺术创作,并成为现代艺术的一种形式。这就是所谓的 Keyboard Art, 也称 Typography:

之后,随着电脑的诞生,程序员们就尝试着用电脑屏幕做同样的事情。于是ASCII Art诞生了:

然后,随着Term终端的应用,各种形式的BBS得到普及,ASCII Art得到进一步发展,不仅可用的字符便多了,还增加了控制字符,成为ANSI Art:

不过技术总是向前走的。随着CSS和web标准的普及,终于有一天,人们开始——————————————

————————终于也开始用CSS+字符的方式开始作画了

不过想想也是,从人们开始用DIV堆圆角的时候,多少已经开始出现这种艺术的原形了。之后著名的ACID2测试,也采用了类似的方法。今天,上面辛普森肖像的作者,Román Cortés,只是将其深入一步而已。

虽说这也算是CSS的一种应用,但多少有些违背CSS的初衷。至于作为一种艺术形式,到底能有多大的发展,我们拭目以待吧。 

原文地址:https://www.cnblogs.com/createyuan/p/4310618.html