pix
is a Python/HTML tool that allows you to convert any image into pixel art. It offers the flexibility to use predefined color palettes or create your own for the output image.
- Image to Pixel Art Conversion: Convert any image into a pixel art version.
- Customizable Palettes: Use predefined color palettes or create your own.
To install pix
, you can clone the repository and install the required packages.
git clone https://github.com/FIEF-nohell/pix.git
cd pix/API
pip install -r requirements.txt
It is very simple to run this tool. First open the startAPI.bat
and after that is running open startGUI.bat
.
When both are running the webserver should be open at localhost:6969/index.html
Select any input image that you want to modify. The number resolution of the output image defines it pixel density. A value of 1 indicates high pixel density, while a value of 20 suggests lower density.
Caution: Lower pixel density values result in longer rendering times. You may need to experiment with this setting to achieve the desired output.
The final argument is the color palette. You can browse available options or add your own in the API/palettes
folder.
Original image left, dawn palette in the middle and nyx on the right.
- Dawn: A palette that looks very monochromatic.
- Full: A color palette with 270 colors.
All other palettes are sourced from Lospec. You can download more palettes from their website. Simply select one and download the HEX file, then place it in the palettes folder
- Convert to a Unity Compute Shader using HLSL
Special thanks to Lospec for providing a wide range of color palettes.