Go-ASCII

command module
v0.0.0-...-d4c87c3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2021 License: MIT Imports: 6 Imported by: 0

README

Go ASCII

This is a simple program written in go that turns images into ASCII art!

Usage

git clone https://github.com/Camezza/Go-ASCII.git
cd Go-ASCII
go run . <image path> <output directory path>

Output

88888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888  
88888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888  
88888888888888888888888888888888888888888888888888888888888888&&&&oooooo::::::::&&8888888888888888888888888888888888888888888888  
888888888888888888888888888888888888888888888888888888&&oo::****++++++++****++****oo8888&&88888888888888888888888888888888888888  
888888888888888888888888888888888888888888888888&&::**++++++**************************&&88&&888888888888888888888888888888888888  
888888888888888888888888888888888888888888&&oo************************************::**++oo##888888888888888888888888888888888888  
88888888888888888888888888888888888888&&::**++++++,,..,,****************************::::++**888888888888888888888888888888888888  
8888888888888888888888888888888888&&::****++,,......    ++********************::::::**::++  ,,&&88888888888888888888888888888888  
88888888888888888888888888888888oo******,,    ..  ..    ..**::****************++++++++::**    ..::888888888888888888888888888888  
888888888888888888888888888888oo++**::++    ..    ....,,++**************,,....    ....++::,,      **8888888888888888888888888888  
8888888888888888888888888888oo**********..    ..++++********************..  ........  ..::**++..    **&&888888888888888888888888  
888888888888888888888888&&oo++++**++****++++++::**::::******************..............  ++**::**,,..++**&&8888888888888888888888  
888888888888888888888888&&++,,,,**********************************++,,,,    ......  ....  ..,,,,**********8888888888888888888888  
888888888888888888##8888**++..,,**++++**************************++    ........  ........        ++****++**8888888888888888888888  
8888888888888888888888::++,,....++**++************************::++  ......  ..    ..      ....  ,,******,,8888888888888888888888  
888888888888888888##oo++,,..,,,,++********************************......    ,,,,++++++,,..  ..  ++**::**,,8888888888888888888888  
88888888888888888888**++....,,,,,,++******************************..  ..    ,,::**::::**,,  ..  ,,::**::++oo88888888888888888888  
888888888888888888::++..,,,,..,,,,++******************************..        ,,**********,,      ++****::**::88888888888888888888  
8888888888888888&&++,,..,,,,..,,,,,,++**************************::,,....++****************++++++************&&888888888888888888  
8888888888888888::,,....,,..,,,,,,..,,********************************::****************::**::::**::********oo888888888888888888  
8888888888888888++,,..,,....,,,,,,,,,,,,++********************************::******************************::**888888888888888888  
88888888888888oo,,........,,,,,,,,,,,,,,,,++******************************++++,,++++++++++++++++,,,,****::**,,oo8888888888888888  
88888888888888**........,,,,,,,,,,,,,,,,,,,,,,++******************++++++,,,,++++****************++,,,,,,++,,,,oo8888888888888888  
88888888888888++......,,....,,,,,,,,,,,,,,,,,,,,,,,,++++++++++++++,,++++++++**********************,,,,++,,,,,,**8888888888888888  
8888888888##oo,,........,,,,,,,,,,,,,,,,,,,,,,,,,,,,..,,,,++,,++++++++**++++**************++******++++,,,,,,,,++&&88888888888888  
8888888888##::........,,,,,,,,,,,,,,,,,,,,,,,,,,,,++++++,,++******++****,,++**********++******++**++,,**,,,,,,,,&&88888888888888  
888888888888**........,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,++************++,,++**********************++,,++**,,++,,oo88888888888888  
888888888888++........,,,,,,,,,,,,,,,,,,,,,,,,,,,,..++++++************++++::::::**********++******++,,++**++,,,,oo88888888888888  
88888888##&&,,........,,,,,,,,,,,,,,,,,,,,,,,,++..,,++++****++******::**::oooooo::****oo::**++****++,,++****,,,,oo88888888888888  
88888888##oo............,,,,,,,,,,,,,,,,,,,,,,,,++++,,****++**++::::::**::oooooo****::oooo::******,,,,++****++..::88888888888888  
88888888##::............,,,,,,,,,,,,,,,,,,,,,,,,++**++**::****::oo::::oo::oooooo****oooo&&oooo::**,,,,++++****..++88888888888888  
8888888888**............,,,,,,,,,,,,,,,,,,++++,,++++******oooo&&oo::oo88oooo&&oo**::oooooooooo::++,,,,++******,,  oo888888888888  
8888888888++........,,,,,,,,,,,,,,,,,,,,,,++,,,,,,++**::::::oo&&oo::8888oo&&&&oo::oooooooooo::::**,,,,++++****++  **888888888888  
8888888888++........,,,,,,,,,,,,,,,,,,..++,,,,++++::::oo::oo&&oo::&&8888oo&&&&::::oo&&oooooo::::****,,++****++**..,,888888888888  
888888##88,,......,,,,,,,,,,,,,,,,,,,,++++,,++++::::oo::**oooo::oo888888&&8888oo&&&&&&&&&&oo::oo&&++,,**++**oo::++,,888888888888  
888888##&&,,......,,,,,,,,,,,,,,,,,,,,**++******::::++....,,**++oo&&88##&&&&&&oooo&&&&&&&&oooo&&88,,,,**++++oooo::**888888888888  
88888888oo,,..,,..,,,,,,,,,,,,,,,,++**++++++++****++..,,..,,  ..++oo88888888&&oo&&8888&&oooo&&88&&++,,++++,,**oo::::888888888888  
88888888::,,......,,,,,,,,,,,,,,,,,,++,,++++++++****++::::**,,,,..++&&####&&&&oo&&8888oo****::88oo,,++++**,,++::oo**oo8888888888  
888888##::,,....,,,,,,,,,,,,,,,,,,++++++++****++++**oo::::&&8888&&++++&&88oo&&&&8888oo++,,,,..++++,,++++**++,,++::::::&&88888888  
88888888**....,,,,,,,,,,,,,,,,,,,,**,,,,****++++**::&&88oooo########&&&&&&oo8888&&oo++  ++oo++,,  ,,++**,,,,++,,++oo::**&&888888  
888888oo,,....,,,,,,,,..,,,,,,,,,,++,,++++++++**::oo&&888888888888888888888888&&&&::**&&8888&&**  ++++**++  ,,**++**oo::::888888  
888888::....,,++,,..,,,,..,,,,,,++++++,,++******::::&&88&&&&88&&&&88888888&&&&&&88::oo88888888....++++****  ++&&88oo**::&&888888  
888888++....,,++++,,,,,,..,,,,,,++,,++,,++::::**::oo8888888888&&88&&&&oo&&&&&&##88&&88&&&&&&::  ++++++::**,,oo##8888&&::::oo8888  
8888&&,,..,,,,,,****,,..,,,,..,,++,,**..,,**::**::::oo888888888888888888##8888##88&&8888&&&&,,..******::**::8888####8888&&oooo88  
88##oo..,,,,....++::++,,,,,,,,++++,,**..,,**::::::oooooo8888######88####88&&88##88##888888oo,,**::**++**oo88888888888888####88##  
8888**..,,....,,,,**::**,,..,,++++,,**..++++::::::&&8888######88##88######88########8888&&**++**::**++**::888888####8888888888##  
8888**..,,....,,..++::::**,,,,++++++**..++++::::::oo88##############################88&&::,,++******++++::&&##8888######88888888  
88##::..,,..,,..,,,,******++,,++,,++**..++****::oo**&&##88##&&88##################88##88**++**::**::++,,::&&##88####888888888888  
88##88,,....,,,,,,..++::****++++,,++::..++****::oo::++88######88888888##88##88######88**++++**::**::++..**&&88888888888888888888  
##88##::..........,,,,**::****++..++::..++++++::::oo,,++88########88&&&&88&&####88::,,,,,,++**::::oo++..,,oo##888888888888888888  
8888##&&,,,,..,,,,,,..++::****++..++::++++****::::oo**  ++&&####88########88&&**,,    ,,++++**oo::oo**..++++&&##8888888888888888  
##8888##++  ..,,,,,,,,,,++****++..,,******::::**oooooo++,,,,::######88oo**++,,..    ..,,,,++**oooooo::..**oo**8888888888888888##  
88##88##&&++,,,,..,,,,,,..,,::++....,,++**::****::oooo::::::++**&&oo++,,++..++....  ,,,,++++**::oooooo..++##oo&&8888888888######  
8888888888##88**......,,,,..,,**,,....,,****::++::oooooo**::::++..,,++,,++++++....  ,,,,++**::oo::oo&&..**####8888888888########  
##888888##oo++....,,,,..,,,,..++**....,,**++oo++::oooooo**::::++,,..,,,,,,++,,,,....,,..,,**::::oo::oo,,::##88####88############  
8888888888,,....,,,,..,,....,,..++++..++**++::****oooooooo**oo**,,,,,,..,,,,,,,,,,..,,..,,**::oooo::oo**::##8888################  
888888##::..........++++++,,..,,,,,,,,,,**++::**++oooooooo::&&&&oo::::::++,,,,,,++,,..,,..**oooooo::oooooo88##888888888888888888  
88888888++....,,,,....++**::++,,,,,,,,..::++::::++oooooooo::oo&&&&oooooooo**,,++,,,,......++oo&&oo::oooooo88##88888888888888##88  
888888&&,,....++****++,,..++::**,,,,,,,,******oo++::oooooo::oo88888888&&::oo**++++++,,..,,++::oooooooooooo&&##88888888888888##88  
888888oo......,,**********,,,,::++,,,,,,++::**oo++::oooooooooo######88oo88##oo++oo::++....,,::oooooo::oooooo8888888888888888##88  
888888::......,,********::**++++******++,,****oo****oooooo::::&&88&&::88####&&++::****,,....**oo&&oooooooooo88888888888888888888  
888888::....,,..************::,,++**::::**++::oo::**oooooo::oo88888888####88##**++****,,,,..,,::oooooooooooo&&888888888888888888  
##88##::........,,**********::**..,,**::::,,**oo::++oooooo::::::&&############::**oooo++,,..,,**::oooo::oooo&&888888888888888888  
##88##::........,,++**********::++..++**::++++::oo++oooooo::::::::oo88####88##&&++::oo**,,,,++,,++oooo::oooo&&888888888888888888  
                                                                                                                                 

Notes

  • Characters are assumed to be white; If you want to flip the colours, reverse the order of opacity
  • Conversion only utilises a single thread so large images will take quite a bit

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL