Skip to content
/ BecASCII Public

I wanted to make something for my wife and I have no artistic skills so I decided to do something creative with my programming skills!

License

Notifications You must be signed in to change notification settings

kodie/BecASCII

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BecASCII <3

I wanted to make something for my wife and I have no artistic skills so I decided to do something creative with my programming skills!

Te amo mi vida ❤️

See It In Action

Visit https://kodie.github.io/BecASCII

What It Does

When the window first loads, it first finds out the width and height that the characters will be based on the font face and size used (using the getFontCharPx function). It then chooses a random object from the images array located in images.js that has an image URL as well as it's original width and height. After that it does some math to figure out what aspect ratio we should stick to based on the image and window size and calculates how many characters wide and high the ASCII art should be so that it fits nicely in any browser window size. Finally, using the aalib.js library, it generates ASCII art of the image and displays it on the page.

TLDR: It generates random images of my wife (Beca) as ASCII art.

How To Use This Yourself

Simply clone this repo and replace the images inside of images.js with your own!

License

MIT. See the license file for more info.

About

I wanted to make something for my wife and I have no artistic skills so I decided to do something creative with my programming skills!

Topics

Resources

License

Stars

Watchers

Forks