- SDL2 and SDL2 development Headers (Example for Fedora)
dnf install SDL2 SDL2-devel
git clone https://github.com/heiziff/pixelfold.git
cd pixelfold
stack build
- Binaries compiled via
stack build
are only runnable from the project directory. If you want to be able to run pixelfold from anywhere, consider usingstack install
or simply download the latest release from github. - To build, the Haskell Stack build system is required. Can be installed via GHCup
stack exec pixelfold-exe <portnumber>
./pixelfold-exe <portnumber>
The server then listens for TCP messages on Port <portnumber>
or Port 4242, if none was specified.
The server accepts the following Commands:
-
Draw: colors the pixel at position (pos_x, pos_y) with the 32-bit color value 0xRRGGBBAA
- Expects messages with the following format: "Draw (pos_x,pos_y) 0xRRGGBBAA\n"
-
Help: Sends back the help text