"""
This file is borrowed from following gist:
https://gist.github.com/MicahElliott/719710
-It's too slow in compare with C program, so bot be used here
+It's too slow in compare with C program.
"""
CLUT = [ # color look-up table
return RGB2SHORT_DICT[rgb_to_hex(m)]
-def image_to_display(path,start=None,length=None):
+def image_to_display(path, start=None, length=None):
rows, columns = os.popen('stty size', 'r').read().split()
if not start:
start = IMAGE_SHIFT