aboutsummaryrefslogtreecommitdiff
path: root/pixelterm/resolvecolor.py
diff options
context:
space:
mode:
Diffstat (limited to 'pixelterm/resolvecolor.py')
-rwxr-xr-xpixelterm/resolvecolor.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/pixelterm/resolvecolor.py b/pixelterm/resolvecolor.py
deleted file mode 100755
index 7fab111..0000000
--- a/pixelterm/resolvecolor.py
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/usr/bin/env python
-
-def main():
- import os, sys, argparse, os.path, json, re
- from pixelterm import xtermcolors
-
- # Resolve HTML-style hex RGB color codes to xterm-256color color numbers
-
- if len(sys.argv) != 2:
- print('Usage: resolvecolor.py #RRGGBB')
- exit()
-
- print(xtermcolors.closest_color(*[int(s, 16) for s in re.match('#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})', sys.argv[1]).groups()]))
-
-if __name__ == '__main__':
- main()
-