summaryrefslogtreecommitdiff
path: root/pywal/backends/wal.py
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2018-03-31 09:42:32 +1100
committerDylan Araps <dylan.araps@gmail.com>2018-03-31 09:42:32 +1100
commit6430724400e698c6971bf605216cbf4a4d203a12 (patch)
tree16c02b6a13541a3f930697620b868803448a050b /pywal/backends/wal.py
parent7d4eb6b075f1a6f080602ca4fadee7d6faf15678 (diff)
backend: Add colorthief.py
Diffstat (limited to 'pywal/backends/wal.py')
-rw-r--r--pywal/backends/wal.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pywal/backends/wal.py b/pywal/backends/wal.py
index 14c4bff..814ef20 100644
--- a/pywal/backends/wal.py
+++ b/pywal/backends/wal.py
@@ -56,7 +56,7 @@ def gen_colors(img, color_count):
return [re.search("#.{6}", str(col)).group(0) for col in raw_colors[1:]]
-def create_palette(img, colors, light):
+def adjust(img, colors, light):
"""Sort the generated colors and store them in a dict that
we will later save in json format."""
raw_colors = colors[:1] + colors[8:16] + colors[8:-1]
@@ -103,4 +103,4 @@ def create_palette(img, colors, light):
def get(img, color_count=COLOR_COUNT, light=False):
"""Get colorscheme."""
colors = gen_colors(img, color_count)
- return create_palette(img, colors, light)
+ return adjust(img, colors, light)