GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - anbani/TextArt: Georgian Text Art Generator

BranchesTags
Open more actions menu

Latest commit

 

History

28 Commits
28 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
bin
bin
 
 
dist
dist
 
 
src
src
 
 
test
test
 
 
utils
utils
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
webpack.config.js
webpack.config.js
 
 
yarn.lock
yarn.lock
 
 

Repository files navigation

TextArt

Text Art generator by Anbani.ge

Demo

Play around with the derivative project here ჻ https://anbani.ge/textart

Available as an npx executable as well!

npx anbani-textart "ჰელოუ" "Anbani Block Small"
     your text -------^               ^--- optional font key

npx demo

EZ Quickstart

Play with this fiddle https://jsfiddle.net/georgegach/g96dks5p/58/ or create index.html file, open in text editor and paste in this code below.

<!DOCTYPE html>
<head>
    <script src="https://cdn.jsdelivr.net/gh/Anbani/TextArt@main/dist/TextArt.js"></script>
</head>
<body>
    <pre id="art"></pre>

    <script>
        window.onload = () => {
            document.querySelector('#art').textContent = window['anbani-textart'].generate(
                'Anbani Block Regular', 
                'გამარჯობა'
            )
        }
    </script>
</body>
</html>

Because <pre/> tags use font-family: monospace fonts by default, the textart will be rendered almost correctly. You could further tweak by adding line-height: 1.2em or even better by using Fira Code font.

Proper Installation

npm i anbani-textart --save

Usage

import textArt from 'anbani-textart';

textArt.keys
// [
//   'Anbani Braille',      'Anbani Braille Small',
//   'Anbani Block Regular', 'Anbani Block Small',
//   'Anbani Block Shadow',  'Anbani Block Shaded', 'Anbani Block Dotted',
//   'Anbani Cross-Stitch',
//   'Anbani Lines Double',  'Anbani Lines Thin',   'Anbani Lines Light',
//   'Anbani Sample Style'
// ]

textArt.generate('Anbani Block Regular', 'გამარჯობა')

  ████   ████▄ ██████  ████▄ ███████   ██   ███████  █▄▄    ████▄ 
    ██      ██     ██     ██ ██      ▀▀██▀▀ ██ █ ██   ██       ██ 
 ██████     ██ ██████     ██ ███████   ▀▀██ ██ ▀ ██ ██████     ██ 
 ██  ██ ▄▄  ██ ██  ██ ▄▄  ██ ██ █ ██ ▄▄  ██ ██   ██ ██  ██ ▄▄  ██ 
 ██████ ██████ ██████ ██████ ██   ██ ██████ ██   ██ ██████ ██████ 

textArt.generate('Anbani Block Small', 'მაინც გავფრინდებით')

▀▀█  ▀█ █▀█ █▀▀ █▝█   ▝█   ▀█ █▀█ ▛▛█ █▀▀▀ █▀█ █▀▀ █▀█ █▀█ ▝▆  █▀█ █▜▛█ 
█▀█   █ █ █ █▀█ █▝█   █▀█   █  ▝█ ▙▌█ █▜▛█ █ █ █▀█ █▄█   █ █▀█ █ █ █▐▌█ 
█▄█ █▄█ █ █ █▄█ █▄█   █▄█ █▄█ █▄█ ▆▄█ █▝▘█ █ █ █▄█ █▄▄ █▄█ █▄█ █ █ █▟▌█ 

textArt.generate('Anbani Block Shadow', 'ანბანი')

 ████▄  ██████   █▄▄     ████▄  ██████  ██████  
  ░░██░ ██░░░░░   ██░     ░░██░ ██░░░░░ ██░░██░ 
    ██░ ██████  ██████      ██░ ██████  ██░ ██░ 
▄▄  ██░ ██░░██░ ██░░██░ ▄▄  ██░ ██░░██░ ██░ ██░ 
██████░ ██████░ ██████░ ██████░ ██████░ ██░ ██░ 
 ░░░░░░  ░░░░░░  ░░░░░░  ░░░░░░  ░░░░░░  ░░  ░░ 

textArt.generate('Anbani Block Shaded', 'ანბანი')

 ░░░░░ ░░░░░░  ░░░    ░░░░░ ░░░░░░ ░░░░░░ 
    ▒▒ ▒▒       ▒▒       ▒▒ ▒▒     ▒▒  ▒▒ 
    ▓▓ ▓▓▓▓▓▓ ▓▓▓▓▓▓     ▓▓ ▓▓▓▓▓▓ ▓▓  ▓▓ 
▓▓  ▓▓ ▓▓  ▓▓ ▓▓  ▓▓ ▓▓  ▓▓ ▓▓  ▓▓ ▓▓  ▓▓ 
██████ ██████ ██████ ██████ ██████ ██  ██ 

textArt.generate('Anbani Block Dotted', 'ანბანი')

 ●●●●· ●●●●●●  ●··    ●●●●· ●●●●●● ●●●●●● 
    ●● ●●       ●●       ●● ●●     ●●  ●● 
    ●● ●●●●●● ●●●●●●     ●● ●●●●●● ●●  ●● 
··  ●● ●●  ●● ●●  ●● ··  ●● ●●  ●● ●●  ●● 
●●●●●● ●●●●●● ●●●●●● ●●●●●● ●●●●●● ●●  ●● 

textArt.generate('Anbani Cross-Stitch', 'ანბანი')

 ××××· ××××××  ×··    ××××· ×××××× ××××××
    ×× ××       ××       ×× ××     ××  ××
    ×× ×××××× ××××××     ×× ×××××× ××  ××
··  ×× ××  ×× ××  ×× ··  ×× ××  ×× ××  ××
×××××× ×××××× ×××××× ×××××× ×××××× ××  ××

textArt.fonts['Anbani Block Regular'].author
// Giorgi Gachechiladze

textArt.fonts['Anbani Block Regular'].contact
// https://github.com/georgegach

Alternatively you can import anbani-textart in CommonJS enviroment as well:

const textArt = require('anbani-textart')

About

Georgian Text Art Generator

anbani.ge/textart

Topics

anbaniartgeneratorgeorgiantext

Resources

Readme
GPL-3.0 license
Activity
Custom properties

Stars

9 stars

Watchers

1 watching

Forks

0 forks
Report repository

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.