summaryrefslogtreecommitdiff
path: root/tools/map.sh
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-04-23 01:44:54 +0200
committerTor Andersson <tor@ccxvii.net>2023-07-07 18:39:22 +0200
commitbb449ea7ce9224284c2b60698cf0b0c7d70f9c71 (patch)
tree63569033b59d2180660bcebca71a98e4dede9ccf /tools/map.sh
parent4936b1e7ff063e4d5d888d467f553d87a4a49abf (diff)
downloadtime-of-crisis-bb449ea7ce9224284c2b60698cf0b0c7d70f9c71.tar.gz
Asset scripts and start of client.
Diffstat (limited to 'tools/map.sh')
-rw-r--r--tools/map.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/map.sh b/tools/map.sh
new file mode 100644
index 0000000..37b4eef
--- /dev/null
+++ b/tools/map.sh
@@ -0,0 +1,7 @@
+pngtopnm map600.png | pnmcut -left 300 -top 300 -width 20400 -height 13200 > map600.ppm
+cat map600.ppm | pnmdepth 65535 | pnmgamma -srgbramp -ungamma | pnmscale -reduce 4 | pnmgamma -srgbramp | pnmdepth 255 > map150.ppm
+cat map600.ppm | pnmdepth 65535 | pnmgamma -srgbramp -ungamma | pnmscale -reduce 8 | pnmgamma -srgbramp | pnmdepth 255 > map75.ppm
+cat overlay_2p_600.ppm | pnmdepth 65535 | pnmgamma -srgbramp -ungamma | pnmscale -reduce 4 | pnmgamma -srgbramp | pnmdepth 255 > overlay_2p_150.ppm
+cat overlay_2p_600.ppm | pnmdepth 65535 | pnmgamma -srgbramp -ungamma | pnmscale -reduce 8 | pnmgamma -srgbramp | pnmdepth 255 > overlay_2p_75.ppm
+cat overlay_3p_600.ppm | pnmdepth 65535 | pnmgamma -srgbramp -ungamma | pnmscale -reduce 4 | pnmgamma -srgbramp | pnmdepth 255 > overlay_3p_150.ppm
+cat overlay_3p_600.ppm | pnmdepth 65535 | pnmgamma -srgbramp -ungamma | pnmscale -reduce 8 | pnmgamma -srgbramp | pnmdepth 255 > overlay_3p_75.ppm