Skip to content

🌈 A script to generate colourful ASCII art from images

License

Notifications You must be signed in to change notification settings

pulkitsharma07/ascii_gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ascii_gen

A script to generate basic colorful ASCII art from Images.

Demo

Demo

Working

The code has ample comments documenting it.

Basically, it maps each 8x8 window of pixels of the image to the character which is most similar to that window.

The code has enough comments to get you going, I recommend starting out with chars/chars.go and then move to the main() function in main.go.

Running/Installing

  • clone this repo
  • go get github.com/nfnt/resize (Required for resizing the image to suitable dimensions)
  • go run main.go /path/to/image.jpeg

PS: I am developing this mainly to learn Go, I do not have any considerable experience in writing Go (or ASCII generators for that matter). Please feel free to point out issues in the code, style, or anything in general !

About

🌈 A script to generate colourful ASCII art from images

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages