Many tools for manipulating images and generating ascii images and texts.
- Converts the provided image to grayscale
- Iterate through every pixel in the image.
- At each pixel, calculate the RGB values.
- Normalize the RGB values and gamma correct.
- Calculate the luminance of the pixel.
- Gamma compand and rescale the the final RGB values into byte range.
- Update the pixel's color.
- Asks for desired ascii image resolution (width in characters) (the higher the better)
- Converts the provided image to grayscale
- Converts the grayscale image to ascii text according to the given resolution (using a linearly distrubted intensity character map)
This can be used for profiles or even Neovim Dashboards
- Iterate through every x pixels in the grayscale image according to the desired resolution.
- Calculate the intensity of the pixel by calculating the intensity of each RGB value in selected pixel (on a scale of
0 - (length(intensityMap)-1))
and then averaging between the 3 values. - Based on the calculated intensity of the pixel, select an ascii character from the intensity map and append it to the final resulting ascii image.
_ __ _ _ _ _ ____
/ |/ // \/ \ / \ / \ /\/ _ \
| / | || | | | | | ||| / \|
| \ | || |_/\| |_/\| \_/|| |-||
\_|\_\\_/\____/\____/\____/\_/ \|
- Converts the provided text into ascii characters (purely for aesthetic looks)
This only works for alphabetical letters and no other characters
This can be used for Neovim Dashboards
- Iterate through the levels of the ascii map (from top to bottom)
- Iterate through the characters of the provided text
- Select the String at the position of that alphabet in the asciiMap and append it to the resulting ascii text.