A (currently partial-functional) C++ Learning Project
The algorithms implemented in this program are brute force and quickly consume memory. Small images are recommended
Libs:
- stb_image.h: https://github.com/nothings/stb
- stb_image_write.h: https://github.com/nothings/stb
- json.hpp: https://github.com/nlohmann/json
- img.hpp: a custom wrapper around stb_image and stb_image_write to simplify extracting pixels and image building
You must have Minecraft installed
Load textures and extract colors
cd colorizer && ./run.sh
Create the image made of MC textures
cd mapper && make clean && make build
bin/main /path/to/textures-version /path/to/colors-version.json /path/to/image.png /out-dir # ex: bin/main ../textures-1.18.2 ../colors-1.18.2.json ./test-img.png .