diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2018-03-31 12:33:52 +1100 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2018-03-31 12:33:52 +1100 |
| commit | 26677bb64b426daf0ad4cad433706b28cdf15bc8 (patch) | |
| tree | a0dc636b4ed01025e4c5c2fdca0ff3a90046b3fa /pywal/util.py | |
| parent | 520b065a30152fb9639418ce0557d45c6a07d9a5 (diff) | |
backend: cleanup
Diffstat (limited to 'pywal/util.py')
| -rw-r--r-- | pywal/util.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pywal/util.py b/pywal/util.py index 43ee3fb..65d4557 100644 --- a/pywal/util.py +++ b/pywal/util.py @@ -144,6 +144,11 @@ def saturate_color(color, amount): return rgb_to_hex((int(r), int(g), int(b))) +def rgb_to_yiq(color): + """Sort a list of colors.""" + return colorsys.rgb_to_yiq(*hex_to_rgb(color)) + + def disown(cmd): """Call a system command in the background, disown it and hide it's output.""" |
