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

Making coloured Ascii text with Python

I'm trying to make a title with coloured ascii for my code, which pops up when launching the code. I already know how to make ascii text but not coloured. This is what I've been able to make, but now I want to have it in magenta. result =…
user15855088
4
votes
1 answer

libcaca - changing ascii glyphs to Katakana

I am creating a video effect that is supposed to look as in "Matrix" movie, but a bit different ("Matrix"-like video output will be mixed with an altered alpha channel with real video, so it will look half real, half with digits). I am using simply…
4
votes
4 answers

BASH Shell Interactive Session - How to fix ASCII art animation output?

I'm trying to animate the following ASCII art. (I have two files right now and may add more later for more fine grained animation.) $ cat ~/aks1.txt \ RTX / \ / \ WAZUH…
AKS
  • 16,482
  • 43
  • 166
  • 258
4
votes
1 answer

Output ASCII art to console on succesfull pytest run

I'm using pytest to run tests in Django project. I'm using pytest.ini where DJANGO_SETTINGS_MODULE is defined, so I run tests with just: pytest Now, I want to add some ASCII art to the console output if the test run is successful. I know I can…
ozren1983
  • 1,891
  • 1
  • 16
  • 34
4
votes
3 answers

Printing ASCII art next to each other

I'm trying to create a Yahtzee game for one person, using random numbers as dice etc etc I have done that but I want to 'pretty' up the game, so instead of outputting five random integers next to each other I want to use ASCII dice next to each…
user6470150
4
votes
2 answers

Making diamond ASCII art with Python

I'm having trouble making this diamond. Whenever I make chars equal to an even length, it turns out fine. However, when it is odd, only the bottom portion of the diamond gets messed up. I've been working hours on this and am almost done. Thanks in…
MuhminA
  • 115
  • 1
  • 8
4
votes
2 answers

How to shift figlet output

I need to shift a FIGlet output (for example to the center of terminal). How can i do this? I tried (tput sc ; tput cup 23 45 ; figlet text; tput rc) but it doesn't work. It isn't obligatory to use figlet, it is possible to use any program which…
antonid
  • 178
  • 1
  • 9
4
votes
1 answer

Backwards looping, creating a diamond pattern

I made a program that allows the user to type in the height of a diamond and it will print one out in asterisks using loops. My code now looks like this: diamond = int(input("Height": ) for i in range(diamond-1): print((diamond-i) * " " +…
4
votes
2 answers

Make a ascii box around the code block in Vim

Is it possible to create a ASCII comment box around the code block? ASCII box should be smart enough to extend the box around the maximum of code width. But It should also clear any trailing spaces. Notice, it should not have a column line at the…
NotepadPlusPlus PRO
  • 987
  • 1
  • 8
  • 21
4
votes
3 answers

Draw two ASCII spruce trees of specific heights

I am trying to write code which generates ASCII art of this shape: * *** ***** ******* * ********* *** *********** ***** ******************** ********************** …
4
votes
10 answers

Display an ASCII diamond with nested for loops

I am trying to display a diamond of asterisks using nested for loops. Here is my code so far: public class Diamond { public static void main(String[] args) { int size = 9; for (int i = 1; i <= size; i += 2) { for (int…
Mac
  • 375
  • 6
  • 10
  • 17
4
votes
4 answers

emacs make square block comments with right aligned border

I need to write code comments with aligned borders on all four sides due to an externally enforced coding standard. What's the easiest way, in Emacs, to: Convert some text into a block comment in this format Edit the text in a block comment and…
Rich
  • 15,048
  • 2
  • 66
  • 119
4
votes
1 answer

Ascii graphic interface library (ncurses-like) for emacs scripts?

Is there any interface library for emacs scripts, allowing to draw various gui in emacs buffers? As far as I know, emacs extensions interface is limited by key-bindings and dialogues in the message buffer. At the same time, you can draw anything in…
Necto
  • 2,594
  • 1
  • 20
  • 45
4
votes
3 answers

Visualize ASCII text in bitmap

I have a huge ASCII-text representing an bitmap like ASCII-art. Now I'm looking for something like an inverted ASCII-art generator. I like to convert each character to a colored pixel. Is there any free tool that can stuff like this?
Karl Adler
  • 15,780
  • 10
  • 70
  • 88
4
votes
2 answers

Algorithms for visual representations of checksums (e.g. SHA)

I want to generate something like VisualHostKey for a SHA checksum. But it should work with any hexadecimal checksum. The generated artifact could be an ASCII art, a 2D colour palette, or just some random garbage in a PNG. Personally I like the…
pjesi
  • 3,931
  • 3
  • 20
  • 16