summaryrefslogtreecommitdiff
path: root/pywal/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'pywal/util.py')
-rw-r--r--pywal/util.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pywal/util.py b/pywal/util.py
index e4b146a..2fe0762 100644
--- a/pywal/util.py
+++ b/pywal/util.py
@@ -57,6 +57,11 @@ class Color:
"""Strip '#' from color."""
return self.hex_color[1:]
+ @property
+ def lighten(self,percent):
+ """Lighten color by percent"""
+ return lighten_color(self.hex_color,percent/100)
+
def read_file(input_file):
"""Read data from a file and trim newlines."""