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

ASCII art exercise, but I don't understand this solution

I'm doing the codingame exercises and I managed to finish the ASCII Art problem, it was long and difficult but I did it. Now I read one of the solutions and it was done in 5 lines of code! I'm trying to understand it but I'm failing to do so, can…
Esteban
  • 69
  • 1
  • 11
-1
votes
1 answer

Python card printer

I don't understand why the cards are not getting printed the second time, even though the string "Player's Hand" is getting printed again. Can someone help me to find the solution to printing them again? Sorry for the previous errors, I just…
-1
votes
1 answer

Multiple arguments for tprint from art

I am using tprint from art (code is shown below), and I want to make it look coloured, using colorama, but when I run the code, I get white instead of magenta, but a few wacky letters infront of it. Input: Output: How do I fix this? (Art can be…
monkey
  • 526
  • 7
  • 21
-1
votes
4 answers

How to draw an image using ASCII symbols?

I am trying to make ASCII Art from an image, but for some reason the output is always rotated and I went through my code a bunch of times and I simply can not find the mistake. I am guessing it's something to do with imageWidth and imageHeight but…
randomboiguyhere
  • 525
  • 5
  • 17
-1
votes
2 answers

Batch code issue with ASCII art: "The syntax of the command is incorrect"

I've been having a lot of touble working out the problem with my code regarding ASCII art, the line in question is below: PING localhost -n 1 >NUL echo ' ----' ""-. \/ // PING localhost -n 1 >NUL Every…
Jinx
  • 3
  • 2
-1
votes
4 answers

For() loop with constant variable isn't printing any output

The problem is that there is no output happening, not an extra println(). This is odd, because doing this programming without a static SIZE var, it works just fine. public class SlashFigure2 { public static final int SIZE = 4; public static…
CurlyFry
  • 37
  • 6
-1
votes
2 answers

Can't print ASCII art

I am trying to print ASCII art for my very simple game. When I try to run the program, it just flashes for 0.01 seconds and disappears. I also tried to use a print statement for each new line. turtle1 = (r'''\ ___-------___ …
Rollerino
  • 3
  • 3
-1
votes
2 answers

ASCII art "V" in c++

I am supposed to write a program that prompts the use for number of lines, then outputs ASCII art in a "V" shape. For input 4, output is ("-" represents spaces): *-----* -*---* --*-* ---* My code is: // prompt for number of stars int…
Smoak
  • 25
  • 6
-1
votes
2 answers

Writing a word in a rhombus/diamond shape in Java

I have to write a program that asks a word and then prints it in a rhombus/diamond shape, like this: Word: Hello H He Hel Hell Hello ello llo lo o I tried something but I really could use some help if someone could, I tried something like…
yolobird
  • 3
  • 2
-1
votes
1 answer

Converting a ppm file into ASCII art

I'm trying to write a code for converting a ppm image into ASCII art. I've written my code but this is not working properly. In fact, it's showing something clearly different from the original image. I have read the ppm file and wrote the ASCII art…
-1
votes
1 answer

Save a HTML table into txt file with format (Ascii Art)

I have created a HTML table with values from Json file like this. I have the json data inline and I create the table using some css.