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
#!/usr/bin/env python3 | |
import fileinput | |
import re | |
from colorsys import * | |
def rgb_to_hsl(r, g, b): | |
return hsv_to_hsl(*rgb_to_hsv(r, g, b)) | |
def hsl_to_rgb(h, s, l): | |
return hsv_to_rgb(*hsl_to_hsv(h, s, l)) |