Giter VIP home page Giter VIP logo

ascii.js's Introduction

ascii.js

A web-font-based rendering engine for displaying ANSI/ASCII artwork on the web as text

Usage

Run the included build.sh script to generate the index.html file for the gallery.

Note: Currently, PHP is being used in the build.sh script as a shortcut for replacing a token in the index.tmpl file with the entire contents of the generated artwork list. Alternatives will be added soon.

Different fonts

Based on the parent folder of the ASCII file being rendered, ascii.js will decide which font to use.

  • 80x50/ - These files will be rendered with the 80x50 DOS font
  • dos/ - These files will be rendered with the 80x25 DOS font
  • amiga/ - These files will be rendered with the Amiga Topaz 500 font

ANSI support

ANSI color/command codes are tenuously supported. Older ANSI works may be using cursor tricks that are difficult to replicate in a static fashion. If you have problems with a particular piece, try reloading it in a recent version of PabloDraw and saving a new copy.

  • 8 background colors
  • 16 foreground colors
  • Minimal CSI code support (mainly CUD/CUF)
  • Doctored font files for displaying extended CP437 characters (ex. 1-31 and 127)

Demonstration

If you'd like to see a live demonstration, or you have no idea what ASCII art is, visit my gallery.

ascii.js's People

Contributors

haliphax avatar

Watchers

[0] avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.