mirror of
https://github.com/freedoom/freedoom.git
synced 2025-09-05 07:25:45 -04:00
automatically generate a GIMP-compatible palette file
Either `make gimp-palette` or `make doom.gpl` will convert the playpal lump into a file that can be imported into GIMP for paletted image modes.
This commit is contained in:
parent
d9c68f376a
commit
383854430b
5 changed files with 29 additions and 1 deletions
14
lumps/playpal/gen-gimp-palette
Executable file
14
lumps/playpal/gen-gimp-palette
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Generates a file suitable for importing into GIMP based on
|
||||
# playpal-base.lmp, and placed into doom.gpl
|
||||
|
||||
# File header
|
||||
cat > doom.gpl <<EOF
|
||||
GIMP Palette
|
||||
Name: Doom
|
||||
Columns: 16
|
||||
#
|
||||
EOF
|
||||
|
||||
od -An -w3 -tu1 playpal-base.lmp >> doom.gpl
|
Loading…
Add table
Add a link
Reference in a new issue