A fun, satisfying application which can convert
images into ASCII art (text art). Take a look at some cool
photos or watch yourself be transformed! (Worry not! We ask to
access your camera, but you are never recorded or viewed.)
What's Happening?
function start() {
setupCanvas();
retrieveImages();
convertToASCII(currentImage);
setInterval(switchImage, 5000);
}
function convertToASCII() {
foreach(pixel) {
densityVal = calculateLuminosity();
pixelChar = ASCII[densityVal];
}
}
See the full project on my GitHub.
Photo by Brian McGowan on Unsplash