Convert c/c++ code into compilable ascii art
10K+
Convert c/c++ code into compilable ascii art
docker run -v $(pwd):/data coorde/cart /data/code.cpp /data/img.png > out.cpp
git clone https://github.com/coord-e/cart
cd cart
mkdir build && cd $_
cmake ..
make
sudo make install
cart [source] [image] {OPTIONS}
cart: Convert a c/c++ code to ascii art
OPTIONS:
-h, --help Print this help
source Path to c source file
image Path to image file
-r[rows], --rows=[rows] Number of rows (=5)
-c[cols], --cols=[cols] Number of cols (=5)
--th=[threshold] threshold (=150)
-d Use #define to shorten tokens
--defth=[define threshold] Minimum length of token (=5)
-v, --verbose Print verbose output and show images in
process
for example: cart source.cpp image.png -r 2 -c 1 > out.cpp
Taywee/args - https://github.com/Taywee/args
Content type
Image
Digest
Size
61.1 MB
Last updated
about 8 years ago
docker pull coorde/cart