Git Product home page Git Product logo

ascii-art's Introduction

ASCII-art

A program to turn images into ASCII-art. It is created by printing characters to your terminal so as to recreate the contours of a source image.

whysoserious

magnify

Dependencies

All of the dependencies can be installed via pip

  • PIL
  • colorama
  • argparse

Usage

download ASCIIart.py and execute:

python ASCIIart.py [-h] [-c] [-i] [-m {0,1,2}] [-ws WIDTH] [-hs HEIGHT]
                   filename
  • positional arguments:

    • filename
  • optional arguments:

    • -h, --help : show this help message and exit
    • -c, --color : ASCII art in glorious color
    • -i, --invert : invert all the brightnesses
    • -m {0,1,2}, --map {0,1,2} : brightness mappings: 0 for average, 1 for lightness, 2 for luminosity
    • -ws WIDTH, --width WIDTH : width of the screen
    • -hs HEIGHT, --height HEIGHT : height of the screen

    Use trial and error to work out the largest image that you can display on your terminal by using params -ws and -hs.

Features

  • Set RGB mappings in 3 styles (average, lightness, luminosity)

  • invert brightness

    inversion

  • 8 color pallete

    color

Acknowledgments

Gratitude to Robert Heaton for inspiring me to do this project. Head to his blog post, if you want to build ASCII-art from scratch.

License

This project is licensed under the MIT License - see the LICENSE file for details

ascii-art's People

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.