A port of the python library fabulous to C
The python library fabulous is as the name implies, fabulous. however it hasn't seen an update in a while. libfab is a port of the core functionality of fabulous to C. Once it is ported wrappers to other languages can be made. I'm working on this to improve my knowledge of C, and to improve upon a library I enjoy using.
- ImageMagick
You can use either make
or tup to build
libfab.
To use tup, clone it git clone https://github.com/gittup/tup
and use
their bootstrap.sh
script to build the tup binary.
Once tup is built, you need to run tup init
the first time, then all
subsequent builds you can use tup upd
or just tup
to rebuild libfab and its
libraries.
In order to run the unit tests you will need to install CUnit.
make test
- Text formating
- Colors
- Highlight Colors
- Background Colors
- 256 colors
- Images
- Buffer Implementation
- Text Formatting
- Basic Text Coloring
- 256color text Coloring
- Color Complements
- Advanced Color specification
- Images -> ASCII
libfab is designed to be used in conjunction with various language bindings. Currently there are bindings for Python and DLang
- Python Bindings by Ryan Brown
- DLang Bindings by Matt Soucy
The original Fabulous was a huge inspiration, and the existing code was a huge help in writing libfab
The xterm, RGB conversion code, the algorithm for rendering images in the terminal, and the rest of fabulous were created by Justine Tunney.