Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jmickle66666666/qpal
Convert between quake palette files and png
https://github.com/jmickle66666666/qpal
Last synced: about 1 month ago
JSON representation
Convert between quake palette files and png
- Host: GitHub
- URL: https://github.com/jmickle66666666/qpal
- Owner: jmickle66666666
- Created: 2019-01-23T17:10:25.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-10-31T23:54:29.000Z (about 2 years ago)
- Last Synced: 2024-08-03T18:21:37.505Z (5 months ago)
- Language: Python
- Size: 588 KB
- Stars: 11
- Watchers: 6
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-quake - qpal - Convert between Quake palette files and PNGs, to create new palettes for Quake. (Modding / QuakeWorld)
README
# qpalconvert.py
Convert between quake palette files and png, to create new cool palettes for quake![preview](https://github.com/jmickle66666666/qpal/blob/master/preview.png)
### Usage
#### windows/mac
Open up `palette.png` in your favourite image editor, and modify it however you'd like. Change the constrast/saturation etc for cool effects and then save it. (You can save it as any file)
In the commandline you can type `qpalconvert my_new_palette.png` and it will output `palette.lmp`, which can be used in your quake mod. Place it in the folder `my_quake_mod/gfx/` folder.
On windows, you can also just drag and drop your image onto `qpalconvert.exe` and it will work without having to use the commandline.
#### python
Requires python 3, and PIL imaging library
`python qpalconvert.py palette.lmp`
Converts a palette file from quake (found in `id1/PAK0.pak/gfx`) to a PNG image representation of the palette
`python qpalconvert.py palette.png`
Converts a 16x16 image file into a quake palette lump.
To use the new palette in your mod, place it in your mod folder at `your_mod/gfx/palette.lmp`