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
5
votes
2 answers

Print out an ASCII circle of the specified width

I'm trying to change the following code so I get this output for radius 2: ***** *** *** ** ** *** *** ***** Any help will be appreciated as I'm about to go crazy! public class Main { public static void main(String[] args) { …
jDeveloper
  • 53
  • 4
5
votes
6 answers

How to draw an ASCII staircase with Java?

I've been trying to get this done in Java. And this is a complex thing to draw, at least for me. Q1 Write a simple Java program that prints a staircase or a figure as shown below: +---+ | | +---+---+ …
John Snape
  • 79
  • 5
5
votes
1 answer

Create a Table with highlighted Source Code in Asciidoc

I would like to highlight some of my code in tables. I tried many ways but I could get it fixed. I would appreciate if someone can help me.
Youkesen
  • 137
  • 1
  • 1
  • 4
5
votes
1 answer

Creating an ASCII art world map

I'd like to render an ASCII art world map given this GeoJSON file. My basic approach is to load the GeoJSON into Shapely, transform the points using pyproj to Mercator, and then do a hit test on the geometries for each character of my ASCII art…
rgov
  • 3,516
  • 1
  • 31
  • 51
5
votes
14 answers

Pyramid of asterisks program in Python

I've written a program in C++ that displays a pyramid of asterisk (see below) and now I'd like to see how it's done in Python but it's not as easy as I'd thought it would be. Has anyone tried this and if so could you show me code that would help…
jimmyc3po
  • 471
  • 3
  • 6
  • 16
5
votes
8 answers

Empty diamond shape with numbers

So I have been asked this question and I could only solve the top part of the code, I am stuck on the bottom part. Write a Java program called EmptyDiamond.java that contains a method that takes an integer n and prints a empty rhombus on 2n − 1…
Marwan N
  • 531
  • 6
  • 20
5
votes
2 answers

Windows batch: Can't echo ASCII art with ._|_

I made ASCII art and I'm trying to have it shown when a .bat file is open. This is the (overwhelmingly basic) code I have. I've checked online and can't really find anything that could help me. Any suggestions? @echo off echo __ __ _______ …
iPhynx
  • 443
  • 6
  • 11
5
votes
2 answers

Isometric ascii cube with python

(sorry for my broken language) I'm a beginner in Python, but I have no choice, I need it for a project, and for this one I have to create ascii isometric cube by programming. I don't know really how to do it, so I began with the idea to find…
krshk
  • 353
  • 1
  • 2
  • 8
5
votes
4 answers

ASCII Art - Sorting an array of ASCII characters by brightness levels (C/C++)

I am working on a program (in C/C++) where the user should take a user selected image and convert this into ASCII art (using SQL). So far I have been able for the user to select an image and display this image in greyscale in a window. However, I…
INeedHelp
  • 61
  • 1
  • 1
  • 2
5
votes
1 answer

Which editor can align tables in reStructuredText for Sphinx?

I tried several editors to write reStructuredText for Sphinx documentation, but found none with a comprehensive support of the reST capabilities. Which editor can align tables while typing? The Emacs combination rest-mode + table-mode for example…
Jonas Stein
  • 6,826
  • 7
  • 40
  • 72
5
votes
2 answers

What is a popular JavaDoc practice for ASCII-art documentation?

I'm working on a project written in Java, designed to transmit data via a messaging system that strictly defines the bit position of the messages fields. This means we have an entire library of dictionary classes designed to bit-shift object input…
jmbeck
  • 938
  • 2
  • 11
  • 21
5
votes
5 answers

How do I print this list vertically?

Let's say I have this list of asterisks, and I say it to print this way: list = ['* *', '*', '* * *', '* * * * *', '* * * * * *', '* * * *'] for i in list: print i So here, the output is: * * * * * * * * * * * * * * * * * * * * * But I want…
UnworthyToast
  • 825
  • 5
  • 11
  • 21
4
votes
3 answers

Help with algorithm to dynamically update text display

First, some backstory: I'm making what may amount to be a "roguelike" game so i can exersize some interesting ideas i've got floating around in my head. The gameplay isn't going to be a dungeon crawl, but in any case, the display is going to be…
Ape-inago
  • 1,870
  • 1
  • 13
  • 27
4
votes
1 answer

7-Segment display with printf and multidimensional array for segments

In K.N Kings "C programming: A modern approach", chapter 10 exercise 7, the task is to make a digit converter from normal digits to 7-segment digits in ASCII art, like this: _ _ _ _ _ _ _ _ | _| _| |_| |_ |_ | |_| |_| |…
OMG-1
  • 498
  • 1
  • 6
  • 20
4
votes
3 answers

VBA & Ascii Art

I'm trying to write a text formed with Ascii Art.For example "Hi".It's hard for me, so I'm here asking your help.Here is what I'm do till now: Option Explicit ' I tried with a Type. Private Type LetterH H1 As String H2 As String H3 As…
Emanuele Tinari
  • 120
  • 1
  • 2
  • 10