Skip to content

Robotozzz/tinyAscii

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

TinyAScii - simple cli based C++ ascii generator


Note

WIP - Work In Progress


The program converts images into ascii art. Supported image formats:

  • PNG
  • JPG
  • GIF
  • PIC

Instructions

Instalation

  • git clone github.com/Robotozzz/tinyAscii
  • cmake
  • make

Usage

Run with the -i path_to_file parameter


how it works?

First we get the image, and pixel by pixel we go over it, using BT.601 coefficients

grascale

Then we divide the image into small squares, for each of the squares we count its "brightness" and using this brightness we map it to a symbol from a special alphabet

std::string asciiCharacters = " .:-=+*#%@";

result


Dependencies

About

A simple program for ascii generation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors