Questions tagged [ascii-art]

ASCII art is a graphic design technique that uses computers for presentation and consists of pictures pieced together from the printable characters. The term is also loosely used to refer to text based visual art in general. ASCII art can be created with any text editor, and is often used with free-form languages. Most examples of ASCII art require a fixed-width font such as Courier for presentation.

ASCII Art can be easily generated with programs like figlet:

$ figlet ASCII-Art
    _    ____   ____ ___ ___        _         _
   / \  / ___| / ___|_ _|_ _|      / \   _ __| |_
  / _ \ \___ \| |    | | | |_____ / _ \ | '__| __|
 / ___ \ ___) | |___ | | | |_____/ ___ \| |  | |_
/_/   \_\____/ \____|___|___|   /_/   \_\_|   \__|

Generating geometric patterns (such as rectangles, triangles, circles, and stars) in ASCII art is also a common exercise in introductory programming courses.

371 questions
312
votes
18 answers

Cooler ASCII Spinners?

In a console app, an ascii spinner can be used, like the GUI wait cursor, to indicate that work is being done. A common spinner cycles through these 4 characters: '|', '/', '-', '\' What are some other cyclical animation sequences to spice up a…
121
votes
1 answer

Image to ASCII art conversion

Prologue This subject pops up here on Stack Overflow from time to time, but it is removed usually because of being a poorly written question. I saw many such questions and then silence from the OP (usual low rep) when additional information is…
Spektre
  • 49,595
  • 11
  • 110
  • 380
63
votes
4 answers

How do ASCII art image conversion algorithms work?

There are some nice free "image to ASCII art" conversion sites like this one: ASCII-art.org How does such an image conversion algorithm work? , . W , …
splattne
  • 102,760
  • 52
  • 202
  • 249
52
votes
2 answers

ASCII art in HTML

What could I do to make it print like it looks in the HTML document in the web browser?
Mladek
  • 523
  • 1
  • 4
  • 4
29
votes
6 answers

How do I echo ASCII art that contains special characters in a batch file?

So.. This is (to me anyway) the most important feature of this program. I need this to work. Please don't laugh.. (okay you can laugh) but when my program errors, I want it to display this: _ _,---._ ,-',' `-.___ /-;' …
user2863294
  • 432
  • 1
  • 5
  • 11
24
votes
1 answer

"Fun" C++ library that interprets ASCII figures in code - what is it called? ("Multi-Dimensional Analog Literals")

A while ago I stumbled upon a C++ gem, a set of classes that through operator overloading and possibly some preprocessor tricks, let you define variables using in-code ASCII art: Line x = |-----|; //x is 5 Line y = |---|; //y is 3 Rectangle…
aib
  • 45,516
  • 10
  • 73
  • 79
22
votes
2 answers

How are the ascii diagrams in RFC's generated?

Not sure if this is the correct stackexchange to ask this question, but I was wondering whether anyone knows if the ascii diagrams in http://tools.ietf.org/rfc/rfc5755.txt page 6 are handcrafted or generated using a program that takes the nodes and…
merlin2011
  • 71,677
  • 44
  • 195
  • 329
21
votes
6 answers

Any Java libraries for drawing ASCII tables?

I need to output data into a console as a table. I was wondering maybe there are some java libraries that would take care of drawing tables in ASCII art, aligning values inside cells, etc? ╔══════╤═══════════╤════════╗ ║ ID │ Name │ Age …
serg
  • 109,619
  • 77
  • 317
  • 330
17
votes
2 answers

Generate an ASCII picture from a string

I want to make a program, where the user enters their name and the program generates an ASCII picture of their name. Is it possible to do that without using 3rd party tools? What I came up with was to create each letter in the alphabet manually and…
Jeel Shah
  • 3,274
  • 17
  • 47
  • 68
16
votes
3 answers

How can I parse ASCII Art to HTML using Java or Javascript?

I saw that the Neo4j API uses ASCII Art very cleverly with its API: http://jaxenter.com/getting-started-with-neo4j-the-java-graph-database-47955.html I want to try something similar, but with ASCI Art to HTML. How can ASCII art be parsed, so for…
yazz.com
  • 57,320
  • 66
  • 234
  • 385
15
votes
2 answers

How to draw(edit) an ascii git tree

How the git tree shown in the git documentation like the one below G H I J \ / \ / D E F \ | / \ \ | / | \|/ | B C \ / \ / …
Talespin_Kit
  • 20,830
  • 29
  • 89
  • 135
15
votes
5 answers

Is there an ASCII arrow that will fit seamlessly with the box-drawing characters?

I'm getting creative with my prompt and on part of it I'm trying to do the following: └→ Though it looks better than this, even in the console it has a small gap. Does anyone know of an arrow character that would not do this?
user736893
15
votes
3 answers

ASCII art in the optparse description

I'm making a shell script with the optparse module, jut for fun, so I wanted to print a nice ascii drawing in place of the description. Turns out that this code: parser = optparse.OptionParser( prog='./spill.py', description=u''' / \ …
tutuca
  • 3,444
  • 6
  • 32
  • 54
15
votes
2 answers

How to create ASCII animation in Windows Console application using C#?

I would like it to display non-flickery animation like this awesome Linux command; sl http://www.youtube.com/watch?v=9GyMZKWjcYU I would appreciate a small & stupid example of say ... a fly. Thanks!
Hamish Grubijan
  • 10,562
  • 23
  • 99
  • 147
14
votes
10 answers

Code Golf: recognize ascii art boxes

Came up with this a while ago while doing some data structure work, though it'd make a good code golf: Given a two dimensional array of characters containing ascii art rectangles, produce a list of coordinates and sizes for the rectangles. Any…
David X
  • 3,998
  • 3
  • 29
  • 32
1
2 3
24 25