summaryrefslogtreecommitdiffstats
path: root/pcb/run_me
diff options
context:
space:
mode:
Diffstat (limited to 'pcb/run_me')
-rwxr-xr-xpcb/run_me13
1 files changed, 13 insertions, 0 deletions
diff --git a/pcb/run_me b/pcb/run_me
new file mode 100755
index 0000000..ec9b497
--- /dev/null
+++ b/pcb/run_me
@@ -0,0 +1,13 @@
+#!/bin/sh
+#pngtopnm in.png > a.ppm
+#ppmtorgb3 a.ppm
+
+S=24
+
+pbmmake -black $S $S > s
+
+pnmcat -tb s s a.red > b.red
+pnmcat -tb s a.grn s > b.grn
+pnmcat -tb a.blu s s > b.blu
+
+rgb3toppm b.red b.grn b.blu | pnmtopng > out.png