Your challenge is to write a program which creates ASCII art from an input string, like FIGlet or the Unix banner utility.

Specifically, your program should take as input a string consisting of printable ASCII characters, and output an ASCII art representation of those characters in the order they appear in the input.

You're free to choose the details of what the output will look like, except that:

  1. The output must be readable.
  2. Simply representing each input character by itself in the output, with or without surrounding "decorative" characters, is considered cheating.

Also, you may not use any programs (like FIGlet), libraries or built-in tools designed for generating ASCII art, nor may your program rely on any external resources such as web services.

This is code golf, so the shortest program wins.

  • 2
    \$\begingroup\$ Here's my golfscript program, assuming input from command line:. Input whatever string you like, and the program will output ascii art. \$\endgroup\$
    – Justin
    Apr 11, 2014 at 17:54
  • 2
    \$\begingroup\$ @TonyH: I don't think it's a duplicate; this challenge seems to basically amount to "golf a simple FIGlet clone", while the challenge you linked to is about converting bitmap images to ASCII art. I do feel that this question is somewhat underspecified, though. \$\endgroup\$ Apr 11, 2014 at 17:56
  • \$\begingroup\$ @user3103241: I've edited your challenge to hopefully make it a bit clearer, more specific and less open to abuse. Let me know if you feel I've misrepresented the intent of your challenge. \$\endgroup\$ Apr 11, 2014 at 18:14
  • \$\begingroup\$ I'm not sure why this was put on hold, when e.g. Generating PBM bitmap files from ASCII text (a very similar challenge, but asking for bitmap output instead of ASCII art) and ASCII art “Hello-World!” (similar, but with fixed input and some restrictions on output characters) seem to have been perfectly fine and successful challenges. Voting to reopen. \$\endgroup\$ Apr 11, 2014 at 19:45
  • \$\begingroup\$ @IlmariKaronen, I would say that "Generating PBM bitmap files" is so similar that this counts as a dupe. \$\endgroup\$ Apr 11, 2014 at 23:05


Browse other questions tagged or ask your own question.