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
3
votes
1 answer

Prevent ActionMailer to strip repeating spaces in plain message

I'm trying to have an table in text mail, so I write some helpers: module MailerHelper def field_width(text, width) ' ' * (width - text.length) + text end def cell(text, width) output = '| ' + field_width(text, width-2) + " |\n" …
Hauleth
  • 22,873
  • 4
  • 61
  • 112
3
votes
3 answers

Output an ASCII diamond shape using loops

I am trying to write a program in Java that captures an integer from the user (assume data is valid) and then outputs a diamond shape depending on the size of the integer, i.e. User enters 5, output would be: --*-- -*-*- *---* -*-*- --*-- So far I…
Michael
  • 4,282
  • 9
  • 55
  • 89
3
votes
3 answers

ascii art generator in c++ newlining

I am trying to generate ASCII art given a string. art.cpp #pragma once #include #include #include "art.h" std::string Art::display(std::string& text) { std::string final_text; final_text.reserve(text.length()); for…
noah
  • 107
  • 10
3
votes
2 answers

How to generate text ASCII art

How can I generate ASCII text like this: