A smol C program to generate text (braille, ASCII, block) art from images.
- C 94.6%
- Makefile 5.4%
| .gitignore | Port to stb_image_resize2.h | |
| LICENSE | Initial commit | |
| main.c | Port to stb_image_resize2.h | |
| Makefile | Add project source files | |
| README.md | Add instructions for building and using the program | |
tim
A smol C program to generate text (braille, ASCII, block) art from images.
Instructions
Create a lib directory and copy stb_image.h and stb_image_resize2.h from https://github.com/nothings/stb into it.
$ make
$ ./tim /path/to/image
To-Do
- Add dynamic threshold calculation
- Add dynamic resized size calculation using winsize or take as argument using tput
- Take a threshold multiplier as an argument
- Take scale as an argument to override the default
- Use a custom scaling algorithm implementation
References
- https://en.wikipedia.org/wiki/Grayscale#Converting_color_to_grayscale
- https://stackoverflow.com/questions/17615963/standard-rgb-to-grayscale-conversion
- https://tannerhelland.com/2011/10/01/grayscale-image-algorithm-vb6.html