菜鸟-创作你的创作

XART—generate art ascii texts.

Nice — here are several ready-to-use ASCII-art text options plus small tools (CLI / Python / Node) so you can generate any text in dozens of styles. I made multiple sample styles for the word XART so you immediately see the possibilities.


1) Quick samples (for XART)

Standard block:

 _  __    _    ____ 
| |/ /   / \  |  _ \
| ' /   / _ \ | |_) |
| . \  / ___ \|  _ < 
|_|\_\/_/   \_\_| \_\

Big banner:

 __   __   ___  _____ _______ 
 \ \ / /  / _ \|_   _|__   __|
  \ V /  | | | | | |    | |   
   | |   | |_| | | |    | |   
   |_|    \___/  |_|    |_|   

Slanted/lean:

      __  ___   ____ 
  /\  |  \/  | |  _ \
 /  \ | \  / | | |_) |
/ /\ \| |\/| | |  _ < 
_/  \_\_|  |_| |_| \_\

Small/compact:

X A R T

Fancy (ASCII “bubble”):

  __   __   ___   ____  
 / /  / /  / _ \ |  _ \ 
/ /_ / /_ | | | || |_) |
\___\\___\|_| |_||____/ 

If you like a specific one above, I can enlarge it, tweak spacing, or make it ready for terminal/README/console banner.


2) Generate any text locally — Command-line options

Install figlet (Linux/macOS)

# Debian/Ubuntu
sudo apt install figlet

# macOS (Homebrew)
brew install figlet

Usage:

figlet "XART"
figlet -f slant "Generate Art"

You can list fonts:

figlet -I2      # show figlet dir
ls /usr/share/figlet    # fonts location (varies)

Fancy toilet (more effects)

sudo apt install toilet
toilet -f mono12 -F metal "XART"


3) Python script (pyfiglet) — generate and save to file

# save as make_ascii.py
from pyfiglet import Figlet
f = Figlet(font='slant')   # try: 'standard', 'big', 'block', 'slant', '3-d'
text = "XART"
print(f.renderText(text))

# To save:
with open('xart.txt','w') as out:
    out.write(f.renderText(text))

Install:

pip install pyfiglet
python make_ascii.py


4) Node.js quick generator

// node script.js
const figlet = require('figlet');
figlet.text('XART', { font: 'Ghost' }, (err, data) => {
  if (err) return console.error(err);
  console.log(data);
});

Install:

npm install figlet
node script.js


5) Web / HTML demo (inline)

<pre id="ascii"></pre>
<script src="https://cdn.jsdelivr.net/npm/figlet@1.5.0/umd/figlet.min.js"></script>
<script>
  figlet.loadFont('Standard', function(){
    document.getElementById('ascii').innerText = figlet.textSync('XART', {font: 'Standard'});
  });
</script>


6) Want more styles / images?

I can:

Tell me one of the following and I’ll generate it immediately (no waiting):

(Or just paste the phrase you want and I’ll pick a few styles and return them right away.)

退出移动版