diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2018-02-02 19:32:30 +1100 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2018-02-02 19:32:30 +1100 |
| commit | 69604342a15066b3c7db09b0d2618fe415b871c0 (patch) | |
| tree | 47eec7ca302606d85be9883d1af955e102850fcb /pywal/util.py | |
| parent | 059eeecfcd368b3a416331a68561e8af44064f23 (diff) | |
colors: Add light theme support.
Diffstat (limited to 'pywal/util.py')
| -rw-r--r-- | pywal/util.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pywal/util.py b/pywal/util.py index 70dca2f..5550eec 100644 --- a/pywal/util.py +++ b/pywal/util.py @@ -121,6 +121,17 @@ def blend_color(color, color2): return rgb_to_hex((r3, g3, b3)) +def saturate_color(color, amount): + """Saturate a hex color.""" + r, g, b = hex_to_rgb(color) + + r2 = r + amount + g2 = g + amount + b2 = b + amount + + return rgb_to_hex((r2, g2, b2)) + + def disown(cmd): """Call a system command in the background, disown it and hide it's output.""" |
