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
8
votes
3 answers

Locate an ASCII art image inside a body of text with a certain toleration for error

Are there any algorithms that would find the following ASCII-art image? + + +++ +++++++ ++ ++ ++ + ++ ++ +++ ++ ++ + ++ ++ ++ +++++++ +++ Inside the following body of text? complete_file_here + + + …
magister
  • 105
  • 6
8
votes
3 answers

Character-mode (shell) plots with Matlab / Octave?

This is maybe a bit odd question, but anyway. Sometimes, I am using ssh into servers or laboratory computers all over the place (continent) in order to check stuff and sometime even run Matlab or Octave for having a look into latest data etc. Then,…
s-m-e
  • 3,433
  • 2
  • 34
  • 71
8
votes
5 answers

Ignore escape sequences in ASCII art

For my command-line-interfaces it's often nice to have a little ASCII art in the beginning, but those often contain many backslashes. For example: System.out.println(" _____ _______ _____ _ __ "); System.out.println(" / ____|__ __|/\ /…
trichner
  • 840
  • 1
  • 11
  • 22
7
votes
4 answers

Generate Ascii art text in C

I am trying to generate ascii art text for a fun application. From FIGLET, I got the ASCII pattern. I am using that pattern in a printf statement to print letters. Here is a screenshot of the pattern I got from FIGLET: Here is the code snippet I…
utsabiem
  • 920
  • 4
  • 10
  • 21
7
votes
2 answers

Output ascii animation from Haskell?

I’m trying to get a very quick and dirty animated display of some data produced using Haskell. The simplest thing to try seems to be ASCII art — in other words, something along the lines of: type Frame = [[Char]] -- each frame is given as an…
PLL
  • 1,572
  • 1
  • 13
  • 21
7
votes
2 answers

Unicode box drawing diagonals

I have a table that I'm drawing using diagonal lines in ascii. Basically a mix of /\^V<>, like this: ^ / \ < > \ / v I would prefer to write this using unicode characters more fit for the job, like ╱, ╳ and ╲, but I lack characters for ^,…
Thomas Ahle
  • 30,774
  • 21
  • 92
  • 114
7
votes
4 answers

Is there an equivalence table to convert ASCII smileys to Unicode emoji(s)?

I would like to find a table to convert the old school western ascii emoticons :-) into their modern unicode equivalent ☺. Do you know if there is one?
Name is carl
  • 5,961
  • 3
  • 29
  • 44
7
votes
3 answers

Which font to render ASCII art on all browsers?

The code below (generated with patorjk.com Text to ASCII Art Generator) gives the expected result (a 'TEST' ASCII art text) on : Windows : Firefox, Chrome, IE Mac : Firefox But the result is bad (see note below) on : Mac : Chrome, Safari. What…
Basj
  • 41,386
  • 99
  • 383
  • 673
7
votes
6 answers

How to horizontally mirror ascii art?

So ... I know that I can reverse the order of lines in a file using tac or a few other tools, but how do I reorder in the other dimension, i.e. horizontally? I'm trying to do it with the following awk script: { out=""; …
Graham
  • 1,631
  • 14
  • 23
6
votes
5 answers

Asterisk art in python

I would like to produce this picture in python! * ** *** **** ***** ****** ******* ******** ********* ********** I entered this: x=1 while x<10: print '%10s' %'*'*x x=x+1 Which sadly seems to…
Azz
  • 89
  • 1
  • 3
  • 8
6
votes
4 answers

Producing ascii art via C#

I once did a programming test for a job, which involved producing ASCii art in C#. I didn't really do well at this, as I had little idea or experience of doing this in C# (or in any programming knowledge). Are there any resources or classes in .NET…
GurdeepS
  • 65,107
  • 109
  • 251
  • 387
6
votes
4 answers

ReactJS: ascii art issue after JSX transformation

I'm trying to get an ascii art to be properly rendered by my React application. After jsx-transformer is executed my art looses the format and renders pretty strange in the browser My code:
Alan Souza
  • 7,475
  • 10
  • 46
  • 68
6
votes
2 answers

How do I hide ASCII art from screen readers and other AT using ARIA HTML5?

We are adding some cute ASCII art on our web site. We're worried that it might cause problems for screen readers so I was thinking about adding aria-hidden="true" or role="presentation" so screen readers don't see the ASCII art. Is this the right…
Bjorn
  • 69,215
  • 39
  • 136
  • 164
6
votes
3 answers

How to match ASCII art segments within ASCII art?

I am practising for a programming competition in which I will have the choice for each problem whether to use Python or C++, so I am open to a solution in either language – whatever language is best suited to this problem. The URL to the past…
user1318194
6
votes
10 answers

Pyramid of numbers in Java

I am trying to print a pyramid in Java that looks something like this: 9 8 9 8 7 8 9 8 7 6 7 8 9 8 7 6 5 6 7 8 9 8 7 6 5 4 5 6 7 8 9 8 7 6 5 4 3 4 5 6 7 8 9 8 7 6 5 4 3 2 3 4 5…
Ajit
  • 667
  • 2
  • 14
  • 27
1 2
3
24 25