Sprite Editor made with raylib (in early development)
- Currently there are three tools, 0 (brush), 1 (eraser), and 2 (fill bucket). The current tool can be changed by pressing left/right.
- At any point you can type commands into the text field on top. Press ENTER to execute the command and ESC to clear it.
- Left click to paint with color A, right click for color B.
- Middle click to pan.
- Scroll wheel to zoom.
Each command consists of the command name and sometimes arguments, all separated by a space. Here is a command reference:
Sets the left click paint color (color A). The behavior depends on the amount of arguments:
- 1 argument: hex color value with alpha, for example
0xFF8000FF
. - 3 arguments: RGB color values, for example
255 128 0
. Alpha is set to 255. - 4 arguments: RGBA color values, for example
255 128 0 255
.
Same as a
, but for the right click paint color (color B).
Creates a new image with the specified width and height. If only one argument is given, the width and height are the same value.
Saves the file with the specified file name.
Quits without saving.
Saves the file just like the s
command, and quits.
- If you're on Windows, download w64devkit. Make sure you get a release zip, not the source code. Extract the archive somewhere and run
w64devkit.exe
. On Linux, just open a terminal. - Follow the below instructions for the platform you want to build for.
- Run
./setup.sh
to set up the project. - Run
./build.sh
to compile the project.
- Run
TARGET=Web ./setup.sh
to set up the project. You will need about 1 GB of free space. - Run
TARGET=Web ./build.sh
to compile the project.
- Install
mingw-w64
using your package manager. - Run
TARGET=Windows_NT ./setup.sh
to set up the project. - Run
TARGET=Windows_NT ./build.sh
to compile the project.