This repo contains brainfuck programs that implement the Quite OK Image Format. A brainfuck implementation with wrapping 8-bit cells is required.
fnl
: sources of the programsbf
: generated brainfuck programs (ready to use)
- qoiview: display a QOI image in a terminal using ANSI escape sequences
- qoiview-kitty: display a QOI image in a terminal using the kitty graphics protocol
- colors-qoi: generate a test image containing all possible combinations of two color channels
- ppm-to-qoi: convert a ppm image to QOI using only
QOI_OP_RGB
chunks - ppm-to-qoi2: convert a ppm image to QOI using
QOI_OP_RGB
andQOI_OP_DIFF
chunks - qoi-debug: print all chunks in a QOI file
- decoder: a template to write your own brainfuck programs that need a QOI decoder
These steps are only necessary if you modified the source files in fnl
or want to run tests. Requires:
git clone --recursive https://github.com/dokutan/qoi-bf
cd qoi-bf
make # build bf/* from fnl/*
make build # compile bf/* with bfc
make debug # compile bf/* to lua for debugging
make test # run tests
# using the programs
./build/qoiview < example.qoi