aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2019-06-26 00:37:20 +0200
committerGuilhem Moulin <guilhem@fripost.org>2019-06-26 01:04:41 +0200
commit556f6d19a315775a366755061aa218c6909ca775 (patch)
tree8f0b07d21c22212465d7055fe1db582fe82a866d /src
parent931806b02c4531e3629ee92a8854abc9614739c5 (diff)
Add script to apply color maps.
Once again, credits to algernon for the maps: https://git.madhouse-project.org/algernon/Model01-Sketch/src/branch/master/tools/colormap
Diffstat (limited to 'src')
-rw-r--r--src/colormap.map41
-rwxr-xr-xsrc/palette16
2 files changed, 57 insertions, 0 deletions
diff --git a/src/colormap.map b/src/colormap.map
new file mode 100644
index 0000000..2ba99d4
--- /dev/null
+++ b/src/colormap.map
@@ -0,0 +1,41 @@
+## Map RxCy to a palette index. Coordinates can be found at
+## ./lib/hardware/keyboardio/avr/libraries/Kaleidoscope/doc/model01_coordinates.png
+
+
+# Dvorak
+
+0 0 0 0 0 0 0 1
+0 0 0 0 0 0 0 0
+0 0 0 0 0 0 0 5
+8 0 0 0 0 0 3 0
+
+2 0 0 0 0 0 0 0
+0 0 0 0 0 0 0 0
+0 0 0 0 0 0 0 0
+0 6 0 0 0 0 0 0
+
+
+# Nav
+
+0 3 3 3 3 3 0 1
+0 7 6 2 6 7 6 0
+0 7 2 2 2 7 2 5
+0 0 6 0 6 0 3 0
+
+2 0 3 3 3 3 3 3
+0 0 8 8 2 8 0 3
+0 2 8 2 2 2 0 0
+0 0 0 0 0 0 0 0
+
+
+# Num
+
+0 0 0 0 0 0 0 1
+0 0 0 0 0 0 0 0
+0 0 0 0 0 0 0 5
+0 0 0 0 0 0 0 0
+
+2 0 0 0 0 0 0 0
+0 0 0 7 7 7 0 3
+0 3 7 7 7 7 3 3
+0 6 3 7 7 7 0 0
diff --git a/src/palette b/src/palette
new file mode 100755
index 0000000..a33d7c6
--- /dev/null
+++ b/src/palette
@@ -0,0 +1,16 @@
+ 0 0 0 # Black
+ 0 0 170 # Blue
+ 0 170 0 # Green
+ 0 170 170 # Cyan
+170 0 0 # Red
+170 0 170 # Magenta
+170 85 0 # Brown
+170 170 170 # Light grey
+ 85 85 85 # Dark grey
+ 85 85 255 # Bright blue
+ 85 255 85 # Bright green
+ 85 255 255 # Bright cyan
+255 85 85 # Bright red
+255 85 255 # Bright Magenta
+255 255 85 # Yellow
+255 255 255 # White / transparent