summaryrefslogtreecommitdiffstats
path: root/pcb
diff options
context:
space:
mode:
authorroot <root@lamia.panaceas.james.local>2015-09-07 13:14:46 +0100
committerroot <root@lamia.panaceas.james.local>2015-09-07 13:14:46 +0100
commit70af01e8de04f743f69c97048285c23e5234aa6f (patch)
tree3504a23b6a93ad3c1b8c2b486cd8345c7fd82219 /pcb
parent66dee77d69889528d3d755e7fd19005bdd57a077 (diff)
downloadbracelet-70af01e8de04f743f69c97048285c23e5234aa6f.tar.gz
bracelet-70af01e8de04f743f69c97048285c23e5234aa6f.tar.bz2
bracelet-70af01e8de04f743f69c97048285c23e5234aa6f.zip
working_bracelet
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