Skip to content

Commit

Permalink
get different bold value colors
Browse files Browse the repository at this point in the history
see discussion: dylanaraps#493
  • Loading branch information
billbrod committed Dec 20, 2022
1 parent 7fae8d2 commit 0ad7804
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions pywal/backends/colorz.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,19 @@
def gen_colors(img):
"""Generate a colorscheme using Colorz."""
# pylint: disable=not-callable
raw_colors = colorz.colorz(img, n=6, bold_add=0)
return [util.rgb_to_hex([*color[0]]) for color in raw_colors]
raw_colors = colorz.colorz(img, n=6, bold_add=50)
return ([util.rgb_to_hex([*color[0]]) for color in raw_colors] +
[util.rgb_to_hex([*color[1]]) for color in raw_colors])
# raw_colors = colorz.colorz(img, n=6, bold_add=0)
# return [util.rgb_to_hex([*color[0]]) for color in raw_colors]


def adjust(cols, light):
"""Create palette."""
raw_colors = [cols[0], *cols, "#FFFFFF",
"#000000", *cols, "#FFFFFF"]

raw_colors = [cols[0], *cols[:6], "#FFFFFF",
"#000000", *cols[6:], "#FFFFFF"]
# raw_colors = [cols[0], *cols, "#FFFFFF",
# "#000000", *cols, "#FFFFFF"]
return colors.generic_adjust(raw_colors, light)


Expand Down

0 comments on commit 0ad7804

Please sign in to comment.