aboutsummaryrefslogtreecommitdiff
path: root/host/matelight/genpal.py
diff options
context:
space:
mode:
authorjaseg <jaseg@jaseg.net>2014-01-03 16:40:44 +0100
committerjaseg <jaseg@jaseg.net>2014-01-03 16:40:44 +0100
commitd27f9ecf7ea92b702df128f856c1063aa91c51f2 (patch)
tree1dc2b1ff871e28966aceb7a6bf7da8f190a6cd24 /host/matelight/genpal.py
parent9ef5c135e894b2da95940e2556f4df9ce2205552 (diff)
downloadmatelight-d27f9ecf7ea92b702df128f856c1063aa91c51f2.tar.gz
matelight-d27f9ecf7ea92b702df128f856c1063aa91c51f2.tar.bz2
matelight-d27f9ecf7ea92b702df128f856c1063aa91c51f2.zip
Maybe gif-lib wasn't too bright an idea...
Diffstat (limited to 'host/matelight/genpal.py')
-rwxr-xr-xhost/matelight/genpal.py35
1 files changed, 0 insertions, 35 deletions
diff --git a/host/matelight/genpal.py b/host/matelight/genpal.py
deleted file mode 100755
index 01fe611..0000000
--- a/host/matelight/genpal.py
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/usr/bin/env python3
-
-xterm_colors = [
- (0x00, 0x00, 0x00),
- (0xa8, 0x00, 0x00),
- (0x00, 0xa8, 0x00),
- (0xa8, 0x54, 0x00),
- (0x00, 0x00, 0xa8),
- (0xa8, 0x00, 0xa8),
- (0x00, 0xa8, 0xa8),
- (0xa8, 0xa8, 0xa8),
- (0x54, 0x54, 0x54),
- (0xfc, 0x54, 0x54),
- (0x54, 0xfc, 0x54),
- (0xfc, 0xfc, 0x54),
- (0x54, 0x54, 0xfc),
- (0xfc, 0x54, 0xfc),
- (0x54, 0xfc, 0xfc),
- (0xfc, 0xfc, 0xfc)]
-
-# colors 16..232: the 6x6x6 color cube
-_valuerange = (0x00, 0x5f, 0x87, 0xaf, 0xd7, 0xff)
-for i in range(217):
- r = _valuerange[(i // 36) % 6]
- g = _valuerange[(i // 6) % 6]
- b = _valuerange[i % 6]
- xterm_colors.append((r, g, b))
-
-# colors 233..253: grayscale
-for i in range(1, 24):
- v = 8 + i * 10
- xterm_colors.append((v, v, v))
-
-for r,g,b in xterm_colors:
- print("\t{{{:#04x}, {:#04x}, {:#04x}}},".format(r,g,b))