Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from __future__ import print_function
- __author__ = 'Brad'
- from colorama import init, Fore, Back
- import os
- init(autoreset=True)
- file = open("img.PCIF", "r+")
- imgData = file.read()
- lines = tuple(open("img.PCIF", 'r'))
- for m in range(0, len(lines)):
- print
- for i in range(0, len(lines[m])):
- currentData = lines[m]
- if currentData[i] == "1":
- print(Back.RED + " ", end=""),
- elif currentData[i] == "2":
- print(Back.GREEN + " ", end=""),
- elif currentData[i] == "3":
- print(Back.BLUE + " ", end=""),
- else:
- print(""),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement