ArticleslgStudy

computer science

ASCII art

ASCII art is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand ASCII art rather than just read about it. In short: ASCII art is a graphic design technique that uses computers for presentation and consists of pictures pieced together from the 95 printable (from a total of 128) characters defined by the ASCII Standard from 1963 and ASCII compliant character sets with proprietary extended characters (beyond the 128 characters of standard 7-bit ASCII). The term is also loosely used to refer to text-based visual art in general.

ASCII art — main illustration
ASCII art — illustration

Key takeaways

  • ASCII art belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect ASCII art to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of ASCII art from memory before moving on to harder problems.

Reference excerpt

ASCII art is a graphic design technique that uses computers for presentation and consists of pictures pieced together from the 95 printable (from a total of 128) characters defined by the ASCII Standard from 1963 and ASCII compliant character sets with proprietary extended characters (beyond the 128 characters of standard 7-bit ASCII). 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 (non-proportional fonts, as on a traditional typewriter) such as Courier or Consolas for presentation. Among the oldest known examples of ASCII art are the creations by computer-art pioneer Kenneth Knowlton from around 1966, who was working for Bell Labs at the time. "Studies in Perception I" by Knowlton and Leon Harmon from 1966 shows some examples of their early ASCII art. ASCII art was invented, in large part, because early printers often lacked graphics ability and thus, characters were used in place of graphic marks. Also, to mark divisions between different print jobs from different users, bulk printers often used ASCII art to print large banner pages, making the division easier to spot so that the results could be more easily separated by a computer operator or clerk. ASCII art was also used in early e-mail when images could not be embedded.

History

Typewriter art

Since 1867, typewriters have been used for creating visual art. Typists could find guides in books or magazines with instructions on how to type portraits or other depictions.

TTY and RTTY

TTY stands for "TeleTYpe" or "TeleTYpewriter", and is also known as Teleprinter or Teletype. RTTY stands for Radioteletype; character sets such as Baudot code, which predated ASCII (the American Standard Code for Information Interchange), were used. According to a chapter in the "RTTY Handbook", text images were sent via teletypewriter as early as 1923. However, none of the "old" RTTY art has been discovered yet. What is known is that text images appeared frequently on radioteletype in the 1960s and the 1970s.

Line-printer art In the 1960s, Andries van Dam published a representation of an electronic circuit produced on an IBM 1403 line printer. At the same time, Kenneth Knowlton was producing realistic images, also on line printers, by overprinting several characters on top of one another. Note that it was not ASCII art in a sense that the 1403 was driven by an EBCDIC-coded platform and the character sets and trains available on the 1403 were derived from EBCDIC rather than ASCII, despite some glyphs commonalities.

ASCII art

The widespread usage of ASCII art can be traced to the computer bulletin board systems of the late 1970s and early 1980s. The limitations of computers of that time period necessitated the use of text characters to represent images. Along with ASCII's use in communication, however, it also began to appear in the underground online art groups of the period. An ASCII comic is a form of webcomic which uses ASCII text to create images. In place of images in a regular comic, ASCII art is used, with the text or dialog usually placed underneath. During the 1990s, graphical browsing and variable-width fonts became increasingly popular, leading to a decline in ASCII art. Despite this, ASCII art continued to survive through online MUDs, an acronym for "Multi-User Dungeon", (which are textual multiplayer role-playing video games), Internet Relay Chat, Email, message boards, and other forms of online communication which commonly employ the needed fixed-width. ASCII art is seen to this day on the CLI app Neofetch, which displays the logo of the OS on which it is invoked. Joan Stark is an American prolific ASCII artist who was active on Usenet's alt.ascii.art in the mid 1990s. Her involvement in ASCII art has been taken as an example of increased online participation by women.

ANSI ASCII and more importantly, ANSI were staples of the early technological era; terminal systems relied on coherent presentation using color and control signals standard in the terminal protocols. Over the years, warez groups began to enter the ASCII art scene. Warez groups usually release .nfo files with their software, cracks or other general software reverse-engineering releases. The ASCII art will usually include the warez group's name and maybe some ASCII borders on the outsides of the release notes, etc.

Uses

ASCII art is used wherever text can be more readily printed or transmitted than graphics, or in some cases, where the transmission of pictures is not possible. This includes typewriters, teleprinters, non-graphic computer terminals, printer separators, in early computer networking (e.g., BBSes), email, and Usenet news messages. ASCII art is also used within the source code of computer programs for representation of company or product logos, and flow control or other diagrams. In some cases, the entire source code of a program is a piece of ASCII art – for instance, an entry to one of the earlier International Obfuscated C Code Contest is a program that adds numbers, but visually looks like a binary adder drawn in logic ports. Some electronic schematic archives represent the circuits using ASCII art. Examples of ASCII-style art predating the modern computer era can be found in the June 1939, July 1948 and October 1948 editions of Popular Mechanics. Early mainframe games played on terminals frequently used ASCII art to simulate graphics, most notably the roguelike genre using ASCII art to visually represent dungeons and monsters within them. The Kroz series of roguelikes for MS-DOS uses ASCII art. 0verkill is a 2D platform multiplayer shooter game designed entirely in color ASCII art. MPlayer and VLC media player can display videos as ASCII art through the AAlib library. Many game walkthrough guides come as part of a basic .txt file; this file often contains the name of the game in ASCII art.

Types and styles Different techniques could be used in ASCII art to obtain different artistic effects. "Typewriter-style" lettering, made from individual letter characters:

… excerpt ends here. Continue reading the full article.

Illustrations

ASCII art: ASCII art of a fish
ASCII art of a fish
ASCII art: "Typewriter art" advertisement in the Brooklyn Daily Eagle, 6 January 1875
"Typewriter art" advertisement in the Brooklyn Daily Eagle, 6 January 1875
ASCII art: Dag Hammarskjöld, printout from teleprinter 1961–1962
Dag Hammarskjöld, printout from teleprinter 1961–1962
ASCII art: There are 95 printable ASCII characters, numbered 32 to 126.
There are 95 printable ASCII characters, numbered 32 to 126.
ASCII art: A self-propelled howitzer and truck made using ASCII art
A self-propelled howitzer and truck made using ASCII art

Worked examples

Example 1 — a first encounter with ASCII art

Start with the simplest possible case. Write down what ASCII art claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to ASCII art before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about ASCII art ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of ASCII art

In research
ASCII art appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses ASCII art in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
ASCII art is common in secondary-school and first-year university syllabi. It links to neighbouring topics ASCII art, Computer art, Digital art, so understanding it makes those chapters shorter.
In everyday life
Look for ASCII art outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “ASCII art” →

How to study ASCII art in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what ASCII art means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain ASCII art out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is ASCII art in simple terms?

ASCII art is a graphic design technique that uses computers for presentation and consists of pictures pieced together from the 95 printable (from a total of 128) characters defined by the ASCII Standard from 1963 and ASCII compliant character sets with proprietary extended characters (beyond the 12…

Why does ASCII art matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study ASCII art?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on ASCII art.

Tags

  • ASCII art
  • Computer art
  • Digital art
  • Internet art
  • Multimedia
  • New media art

Keep exploring