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

What logic needs to be changed to get the star pattern

class Starr { public static void main(String[] args) { int res; for(int i=1;i<=5;i++) { for(int j=1;j<=5;j++) { res=i+j; if(res>=6) { System.out.print("*"); …
beginnr
  • 5
  • 1
  • 5
-2
votes
1 answer

Is there a way to echo special ASCII symbols such as ░?

ASCII art in batch could look a lot nicer if their was a way to display things such as ░ without it interpreting it as odd symbols.
-2
votes
1 answer

How to draw ASCII art on python

I'm having a problem printing out a specific ASCII art that I saw and was wondering if anyone could help me. The program does not want to run, but I don't know where the error in my code is. Input print("(\\ (\/)") print("( '') …
Nathan Kindo
  • 3
  • 1
  • 8
-2
votes
5 answers

How to convert ASCII characters to readable value in Javascript

I have received ASCII characters to GPS device but I can understand how to read data to the ASCII characters. I have received data like this…
Akshay I
  • 3,675
  • 1
  • 34
  • 57
-2
votes
1 answer

Loop for ascii arts in C

I have to create loops that shows some ascci arts in C. I made the first one, and it is working fine. But I can't do the second. I tried with strings, loops, but I can't think in a right logic. When I thought that I got it, the program not worked.…
aquasp
  • 67
  • 1
  • 8
-2
votes
3 answers

How to print a diamond with a frame using Java?

Hello I am still a learner, I am faced with writing a java code that prints a diamond with a frame enclosing the diamond. I have tried making the frame, but I am having challenge forming the diamond. Here is a sample of how the diamond should look…
-2
votes
1 answer

Making an Octagon in Python out of asterisks

I am trying to write a simple code in Python to make an octagon out of *. Here is the code I have so far, but obviously isn't working properly: oct_length = int(input("What is the length of one side? ")) for i in range(oct_length): print(' ' *…
-2
votes
2 answers

How to output an ASCII star patterns in a table format?

I need help with my code issue. I have to write a program that displays a star pattern in a table format. I am not exactly looking for the exact code, I would like to figure it out myself, so any suggestions and tips would be greatly helped. //…
bdupitas
  • 1
  • 1
  • 4
-2
votes
2 answers

How to print a diamond of random numbers?

Can someone help me complete this numeric diamond? I have the right side of the diamond printing out, but I'm having trouble printing out the left side of it. If anybody can help I would really appreciate it. I made some changes to my code. I now…
CelticsGrl
  • 19
  • 3
-2
votes
1 answer

Concurently running javascripts onload

I have two javascripts I want to run at the same time, to create a layered animation. Both, are essentially the same script, but with different settings I use to load each function. separately, both loops work…
j0h
  • 1,675
  • 6
  • 27
  • 50
-3
votes
1 answer

Ascii art in Python PPM format

Possible Duplicate: PPM image to ASCII art in Python This is the updated code. I just need it to print the characters on the same line and break at the end import sys def main(filename): image = open(filename) #reads through the first three…
asmith
  • 69
  • 1
  • 1
  • 5
-3
votes
4 answers

How to print ASCII patterns in C# but using Java syntax?

Code below is for pattern a, feel like once I get a I could get the others. I like the array[int].length syntax in Java and was helpful to get the pattern to print as shown in the picture. But I do not think such a thing exists in C#. class Main { …
-3
votes
3 answers

Make An Upside Down Pattern With Nested For Loops

I need to make a pattern with a function, which given an integer(n) will print out a particular pattern of size n. It should look like this at size 4, for example: !!!!!!!!!!!!!! \\!!!!!!!!!!// \\\\!!!!!!//// \\\\\\!!////// Here is my code thus…
mothmook
  • 1
  • 2
-3
votes
1 answer

How to print ASCII art?

I want to print some ASCII art using python 3 on my terminal. I've tried triple quotes but got all sorts of Syntax Errors. How would you do this? EDIT: Let's take a very good ASCII ART, we want to print it on our terminal. Temptative example…
deppep
  • 135
  • 1
  • 1
  • 7
-3
votes
2 answers

How to type a string using * chars?

I was set the ask to print a string of input letters Б О Б using only " * " chars. My Java teacher wants to see the following output: It's easy to create a public class Letter and to code only two letters using matrix. But I faced the problem to…
Mike
  • 31
  • 1
  • 7
1 2 3
24
25