在控制台应用程序中,可以使用ascii转轮,如GUI等待游标,以指示工作正在完成。一个普通的旋转器循环使用以下4个字符:'|','/','-','\'
还有哪些循环动画序列可以为控制台应用程序增添趣味?
在控制台应用程序中,可以使用ascii转轮,如GUI等待游标,以指示工作正在完成。一个普通的旋转器循环使用以下4个字符:'|','/','-','\'
还有哪些循环动画序列可以为控制台应用程序增添趣味?
当前回答
试试这些
“+”,“x” 'v', '<', '^', '>'
其他回答
我用了一个循环
Working.
Working..
Working...
我知道这很鼓舞人心
我写了一个循环通过标准的\ | / -但左边的a _,并移动到下一个位置。它的目的是看起来好像有一系列的旋转器,在下一个开始之前,每个旋转器都掉到地板上。这样做的需要是我的程序反复尝试某件事并等待某个结果。我想要表示它每次尝试的次数,以及它在不占用大量屏幕空间(或计数)的情况下尝试了多少次。
在我写完之后,它看起来没有我想象的那么酷,但它达到了它的目的。
如果你有超过一个字符的空间,你可以使用动画ASCII图像。例如,你可以这样做一个进度条:
[ ]
[== ]
[===== ]
[======== ]
或者一个“弹跳的球”进度指示器(来回移动),比如:
(-*--------) // moving -->
(-----*----) // moving -->
(---------*) // moving -->
(--------*-) // moving <--
(---*------) // moving <--
(*---------) // moving <--
一些更高级的东西,比如加载动画也可以工作。
编辑: 还有一种“行政办公桌玩具”
╔════╤╤╤╤════╗ ╔════╤╤╤╤════╗ ╔════╤╤╤╤════╗ ╔════╤╤╤╤════╗
║ │││ \ ║ ║ ││││ ║ ║ / │││ ║ ║ ││││ ║
║ │││ O ║ -> ║ ││││ ║ -> ║ O │││ ║ -> ║ ││││ ║
║ OOO ║ ║ OOOO ║ ║ OOO ║ ║ OOOO ║
当然,还有一个动画ASCII艺术的终极例子,如果你有时间实现一些类似的东西(这将“为控制台应用程序增添趣味”到极致)。
编辑:如果您的控制台支持颜色,您还可以通过在旋转时循环颜色来为其他枯燥的标准旋转器增添趣味。从一条红色的线开始,然后随着你旋转,慢慢地穿过彩虹变成紫色。如果你让球在每一次传球时都“涂”上不同的颜色,那么上面的“弹跳球”指示器看起来会特别酷。
在一个应用程序中,我看到1、2、3、4、5、6、7、8、9、0。
在这里观看他们的行动:
var nl = "\r\n"; var spinners = [ "←↖↑↗→↘↓↙", "▁▃▄▅▆▇█▇▆▅▄▃", "▉▊▋▌▍▎▏▎▍▌▋▊▉", "▖▘▝▗", "▌▀▐▄", "┤┘┴└├┌┬┐", "◢◣◤◥", "◰◳◲◱", "◴◷◶◵", "◐◓◑◒", "|/-\\", ".oO@*", ["◡◡", "⊙⊙", "◠◠"], ["◜ ", " ◝", " ◞", "◟ "], "◇◈◆", "⣾⣽⣻⢿⡿⣟⣯⣷", "⡀⡁⡂⡃⡄⡅⡆⡇⡈⡉⡊⡋⡌⡍⡎⡏⡐⡑⡒⡓⡔⡕⡖⡗⡘⡙⡚⡛⡜⡝⡞⡟⡠⡡⡢⡣⡤⡥⡦⡧⡨⡩⡪⡫⡬⡭⡮⡯⡰⡱⡲⡳⡴⡵⡶⡷⡸⡹⡺⡻⡼⡽⡾⡿⢀⢁⢂⢃⢄⢅⢆⢇⢈⢉⢊⢋⢌⢍⢎⢏⢐⢑⢒⢓⢔⢕⢖⢗⢘⢙⢚⢛⢜⢝⢞⢟⢠⢡⢢⢣⢤⢥⢦⢧⢨⢩⢪⢫⢬⢭⢮⢯⢰⢱⢲⢳⢴⢵⢶⢷⢸⢹⢺⢻⢼⢽⢾⢿⣀⣁⣂⣃⣄⣅⣆⣇⣈⣉⣊⣋⣌⣍⣎⣏⣐⣑⣒⣓⣔⣕⣖⣗⣘⣙⣚⣛⣜⣝⣞⣟⣠⣡⣢⣣⣤⣥⣦⣧⣨⣩⣪⣫⣬⣭⣮⣯⣰⣱⣲⣳⣴⣵⣶⣷⣸⣹⣺⣻⣼⣽⣾⣿", "⠁⠂⠄⡀⢀⠠⠐⠈", [">))'>", " >))'>", " >))'>", " >))'>", " >))'>", " <'((<", " <'((<", " <'((<"], [" /\\O\n /\\/\n /\\\n / \\\n LOL LOL", " _O\n //|_\n |\n /|\n LLOL", " O\n /_\n |\\\n / |\n LOLLOL"], [ "╔════╤╤╤╤════╗\n║ │││ \\ ║\n║ │││ O ║\n║ OOO ║", "╔════╤╤╤╤════╗\n║ ││││ ║\n║ ││││ ║\n║ OOOO ║", "╔════╤╤╤╤════╗\n║ / │││ ║\n║ O │││ ║\n║ OOO ║", "╔════╤╤╤╤════╗\n║ ││││ ║\n║ ││││ ║\n║ OOOO ║" ], [ " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '\\"+nl+ " ' \\===%^,"+nl+ " ' \\@ >"+nl+ " ' `\\/> _"+nl+ " ' ______>,^____\\"+nl+ " ' \\-=-=-=-=-=-/{}"+nl+ "'~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '\\"+nl+ " ' \\===%^,"+nl+ " ' \\@ >"+nl+ " ' `\\/> _"+nl+ " ' ______>,^____\\"+nl+ " ' \\-=-=-=-=-=-/{}"+nl+ "'-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '\\"+nl+ " ' \\===%^,"+nl+ " ' \\@ >"+nl+ " ' `\\/> _"+nl+ " ' ______>,^____\\"+nl+ " ' \\-=-=-=-=-=-/{}"+nl+ "'~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '\\"+nl+ " ' \\===%^,"+nl+ " ' \\@ >"+nl+ " ' `\\/> _"+nl+ " ' ______>,^____\\"+nl+ " ' \\-=-=-=-=-=-/{}"+nl+ "'-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '\\"+nl+ " ' \\===%^,"+nl+ " ' \\@ >"+nl+ " ' `\\/> _"+nl+ " ' ______>,^____\\"+nl+ " ' \\-=-=-=-=-=-/{}"+nl+ "'~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '\\"+nl+ " ' \\ ==%^,"+nl+ " ' \\@ >"+nl+ " ' `\\/> _"+nl+ " ' ______>,^____\\"+nl+ " ' \\-=-=-=-=-=-/{}"+nl+ "'-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '\\"+nl+ " ' \\ =%^,"+nl+ " ' \\@ >"+nl+ " ' `\\/> _"+nl+ " ' ______>,^____\\"+nl+ " ' \\-=-=-=-=-=-/{}"+nl+ "'~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '\\"+nl+ " ' \\ %^,"+nl+ " ' \\@ >"+nl+ " ' `\\/> _"+nl+ " ' ______>,^____\\"+nl+ " ' \\-=-=-=-=-=-/{}"+nl+ "'-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '\\"+nl+ " ' \\ ,^%"+nl+ " ' \\@ <"+nl+ " ' `\\/> _"+nl+ " ' ______>,^____\\"+nl+ " ' \\-=-=-=-=-=-/{}"+nl+ "'~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '\\"+nl+ " ' \\ ,^%="+nl+ " ' \\@ <"+nl+ " ' `\\/> _"+nl+ " ' ______>,^____\\"+nl+ " ' \\-=-=-=-=-=-/{}"+nl+ "'-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '\\"+nl+ " ' \\ ,^%=="+nl+ " ' \\@ <"+nl+ " ' `\\/> _"+nl+ " ' ______>,^____\\"+nl+ " ' \\-=-=-=-=-=-/{}"+nl+ "'~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '\\"+nl+ " ' \\ ,^%==="+nl+ " ' \\@ <"+nl+ " ' `\\/> _"+nl+ " ' ______>,^____\\"+nl+ " ' \\-=-=-=-=-=-/{}"+nl+ "'-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '\\"+nl+ " ' \\ ,^%==="+nl+ " ' \\@ <"+nl+ " ' `\\/> _"+nl+ " ' ______>,^____\\"+nl+ " ' \\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '\\"+nl+ " ' \\ ,^%==="+nl+ " ' \\@ <"+nl+ " ' `\\/> _"+nl+ " ______>,^____\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '\\"+nl+ " ' \\ ,^%==="+nl+ " ' \\@ <"+nl+ " ' `\\/> _"+nl+ " ______>,^____\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '|"+nl+ " ' | ,^%---"+nl+ " ' |@ < \\"+nl+ " ' `\\/> _"+nl+ " ______>,^____\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '/"+nl+ " ' / ,^%---"+nl+ " ' /@ < \\"+nl+ " ' `\\/> _"+nl+ " ______>,^____\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '|"+nl+ " ' | ,^%---"+nl+ " ' |@ < \\"+nl+ " ' `\\/> _"+nl+ " ______>,^____\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '/"+nl+ " ' / ,^%---"+nl+ " ' /@ < \\"+nl+ " ' `\\/> _"+nl+ " ______>,^____\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '/"+nl+ " ' / ,^%---"+nl+ " ' /@ < \\"+nl+ " ' `\\/> _"+nl+ " ______>,^____\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '|"+nl+ " ' / ,^%---"+nl+ " ' /@ < \\"+nl+ " ' `\\/> _"+nl+ " _______>,^___\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '\\"+nl+ " ' | ,^%---"+nl+ " ' /@ < \\"+nl+ " ' `\\/> _"+nl+ " ________>,^__\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '|"+nl+ " ' / ,^%---"+nl+ " ' /@ < \\"+nl+ " ' `\\/> _"+nl+ " _______>,^___\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '\\"+nl+ " ' | ,^%---"+nl+ " ' /@ < \\"+nl+ " ' `\\/> _"+nl+ " ________>,^__\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ "' '/"+nl+ " ' ' / \\_,^%---"+nl+ " ' ' /@ < \\"+nl+ " `\\/> _"+nl+ " ________>,^__\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ ";''"+nl+ " ' '/ /"+nl+ " ' ' / \\,^%==="+nl+ " ' ' /@ <"+nl+ " `\\/> _"+nl+ " ________>,^__\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " ;''"+nl+ " ' '/ /"+nl+ " ' ' / \\,^%==="+nl+ " ' ' /@ <"+nl+ " `\\/> _"+nl+ " ________>,^__\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " ;''"+nl+ " '"+nl+ " ' '/ /"+nl+ " ' ' / \\,^%==="+nl+ " /@ <"+nl+ " `\\/> _"+nl+ " ________>,^__\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " ;'"+nl+ " '"+nl+ " ' '/ /"+nl+ " ' ' / \\,^%=="+nl+ " /@ <"+nl+ " `\\/> _"+nl+ " ________>,^__\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " ; "+nl+ " '"+nl+ " ' '/ /"+nl+ " ' ' / \\,^%="+nl+ " /@ <"+nl+ " `\\/> _"+nl+ " ________>,^__\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ "'. ;'."+nl+ " '- .' '/ _"+nl+ "*) / ' ' / \\=%"+nl+ " _\\ ' ' /@ >"+nl+ "'~ `\\/> _"+nl+ " ________>,^__\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ "`-."+nl+ " '. ;"+nl+ " '- . ' '/_"+nl+ "{ (*) / ' ' / \\==@^"+nl+ " _\\ ' ' /@ >"+nl+ ".;;'~ `\\/> _"+nl+ " ________>,^__\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " \\\\\\\\"+nl+ ".-' `-. ;"+nl+ " '.'"+nl+ " '- '|"+nl+ " {{ (*) / '' |===@^"+nl+ " _\\ |@ >"+nl+ " .;;'~ `\\/> _"+nl+ "/~~''~ ________>,^__\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " \\\\\\\\ ;"+nl+ " .-' `-. '"+nl+ " .-' '. ''"+nl+ " .' '- \\"+nl+ "' {{ (*) /===@^,/"+nl+ "-. _\\ >"+nl+ " ~-. .;;'~|@ \\/> _"+nl+ " ///~~''~______`__>,^_\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " \\\\\\\\ "+nl+ " .-' `-."+nl+ " .-' '."+nl+ " .' '- \\"+nl+ "(`-.-' {{ (*) / ===@^,/"+nl+ " } .'~-. _\\/ >"+nl+ " (/ ~-. .;;'~ / \\/> "+nl+ " ///~''~_____/@____>,^"+nl+ " \\-=-=-`-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " \\\\\\\\ YIKES"+nl+ " .-' `-."+nl+ " .-' '. /"+nl+ " .' '- ---@^,/"+nl+ " (`-.-' {{ (*) / / >"+nl+ " } .'~-. _\\ \\/> "+nl+ " (/ ~-. .;;'~_____>,^"+nl+ " ///~''~-=-=|@-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " YIKES"+nl+ " \\\\\\\\"+nl+ " .-' `-. \\"+nl+ " .-' '. ---@^,/"+nl+ " .' '- / >"+nl+ " (`-.-' {{ (*) / \\/> "+nl+ " } .'~-. _\\___>,^"+nl+ " (/ ~-. .;;'~/=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~/@-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " YIKES"+nl+ " "+nl+ " \\\\\\\\ _"+nl+ " .-' `-. ---@^,/"+nl+ " .-' '. / >"+nl+ " .' '- \\/> "+nl+ " (`-.-' . . ` {{ (*) /___>,^"+nl+ " } .'~-. . ` _\\-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-/-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " YIKES"+nl+ " "+nl+ " _"+nl+ " ` . \\\\\\\\ ---@^,/"+nl+ " ` ` .-' `-. . '/ >"+nl+ " ` .-' '. ' \\/> "+nl+ " `' ` '-___>,^"+nl+ " (`-.-' . . ` {{ (*) /-=-=-/{}"+nl+ "-~-~-~-~-~-~-`-. . ` ' \\~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " YIKES"+nl+ " "+nl+ " _"+nl+ " ` . ' ---=^,/"+nl+ " ` ` . . / >"+nl+ " ` ` \\\\\\\\ ' \\/> "+nl+ " ` ` .-' `-. ______>,^"+nl+ " ` .-' '.-=-=-=-/{}"+nl+ "~-~-~-~-~-.-~-~-~-'-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " YIKES"+nl+ " "+nl+ "` . ' _"+nl+ " ` ` ---@^,/"+nl+ " ` ` ' / >"+nl+ " ` ` \\/> "+nl+ " ` ` __________>,^"+nl+ " ` \\\\\\\\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~' `-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " ."+nl+ " ' _"+nl+ " ` . ---@^,/"+nl+ " ` ` / >"+nl+ " ` ` . \\/> "+nl+ " ` ` . __________>,^"+nl+ " ` ` ` \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~\\\\\\\\.~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " ` . _"+nl+ " `` ' ===-^,/"+nl+ " ` ` >"+nl+ " ` ' \\/> "+nl+ " ` . __________>,^"+nl+ " ` \\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-`-.-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " . ` ' _"+nl+ " ` ` ===-^,/"+nl+ " . >"+nl+ " ` ' \\/> "+nl+ " . __________>,^"+nl+ " ` \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " ` _"+nl+ " ` ===-^,/"+nl+ " ` ` ' >"+nl+ " ` \\/> "+nl+ " __________>,^"+nl+ " \\-=-=-=-=-=-/{я}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " ` ' _"+nl+ " ` ===-^,/"+nl+ " >"+nl+ " \\/> "+nl+ " __________>,^"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " _"+nl+ " ===%^,/"+nl+ " >"+nl+ " \\/> "+nl+ " __________>,^"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " \\"+nl+ " ---%^,/"+nl+ " / >"+nl+ " _/> "+nl+ " __________>,^"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " _"+nl+ " ---%^,/ "+nl+ " / >"+nl+ " _/> _"+nl+ " _________>,^_\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " "+nl+ " ===%^,"+nl+ " >"+nl+ " /> _"+nl+ " _______/_>,^_\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " "+nl+ " ===-^,"+nl+ " >"+nl+ " _/> _"+nl+ " _________>,^_\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " "+nl+ " ===%^,"+nl+ " >"+nl+ " \\/> _"+nl+ " _________>,^_\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " "+nl+ " ===-^,"+nl+ " >"+nl+ " \\/> _"+nl+ " _________>,^_\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " "+nl+ " ===%^,"+nl+ " >"+nl+ " \\/> _"+nl+ " _________>,^_\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " "+nl+ " ---%^,"+nl+ " Rats. / >"+nl+ " _/> _"+nl+ " _________>,^_\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " "+nl+ " ---%^,"+nl+ " Rats. / >"+nl+ " _/> _"+nl+ " _________>,^_\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " "+nl+ " ---%^,"+nl+ " Rats. / >"+nl+ " _/> _"+nl+ " _________>,^_\\"+nl+ " я \\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " "+nl+ " ---%^,"+nl+ " Rats. / >"+nl+ " _/> _"+nl+ " _________>,^_\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " "+nl+ " ---%^,"+nl+ " Rats. / >"+nl+ " _/> _"+nl+ " _________>,^_\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " "+nl+ " ===%^,"+nl+ " >"+nl+ " _/> _"+nl+ " _________>,^_\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " "+nl+ " ===-^,"+nl+ " >"+nl+ " _/> _"+nl+ " _________>,^_\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " "+nl+ " ===%^,"+nl+ " >"+nl+ " _/> _"+nl+ " _________>,^_\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " "+nl+ " ===%^,"+nl+ " >"+nl+ " _/> _"+nl+ " _________>,^_\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-я~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " "+nl+ " ---%^,"+nl+ " / >"+nl+ " /> _"+nl+ " _______/_>,^_\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " "+nl+ " ---%^,"+nl+ " I lost my fishing rod. / >"+nl+ " /> _"+nl+ " _______/_>,^_\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"], // "Fishing" taken from http://asciimator.net/kangaroo/fishing.html ]; for (var s = 0; s < spinners.length; ++s) { var spinner = spinners[s]; var div = document.createElement('div'); var el = document.createElement('pre'); div.appendChild(el); document.body.appendChild(div); (function(spinner, el) { var i = 0; setInterval(function() { el.innerHTML = spinner[i]; i = (i + 1) % spinner.length; }, 300); })(spinner, el); } pre { font-family: monospace; font-size: 1.5em; font-weight: bold; border: 1px solid #eee; display: inline-block; margin: .25em; }
还有更多@ cli-spinners,由Sindre Sorhus提供。
你可以在这里获取JSON。
我在这里把它们javascript化了:JsBin