summaryrefslogtreecommitdiffstats
path: root/pcb
diff options
context:
space:
mode:
Diffstat (limited to 'pcb')
-rw-r--r--pcb/in.pngbin0 -> 17981179 bytes
-rw-r--r--pcb/out.pngbin0 -> 16617920 bytes
-rwxr-xr-xpcb/run_me13
3 files changed, 13 insertions, 0 deletions
diff --git a/pcb/in.png b/pcb/in.png
new file mode 100644
index 0000000..11942b8
--- /dev/null
+++ b/pcb/in.png
Binary files differ
diff --git a/pcb/out.png b/pcb/out.png
new file mode 100644
index 0000000..05ae995
--- /dev/null
+++ b/pcb/out.png
Binary files differ
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