This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subproc | |
import time | |
subproc.Popen('calc') | |
print('now close this window and see calc closing itself') | |
while True: | |
time.sleep(1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
from copy import deepcopy | |
from functools import lru_cache | |
from PIL import ImageDraw, Image | |
# Color conversion formula borrowed from: | |
# http://www.easyrgb.com/index.php?X=MATH&H=02#text2 | |
ref_X = 95.047 # ref_X = 95.047 Observer= 2°, Illuminant= D65 | |
ref_Y = 100.000 # ref_Y = 100.000 |