mirror of
https://github.com/dylanaraps/pywal.git
synced 2024-12-01 20:33:51 +01:00
magic: Update docs
This commit is contained in:
parent
0757c9ef05
commit
570bfccfc5
@ -19,7 +19,8 @@ def imagemagick(color_count, img):
|
|||||||
|
|
||||||
|
|
||||||
def gen_colors(img):
|
def gen_colors(img):
|
||||||
"""Generate a color palette using imagemagick."""
|
"""Format the output from imagemagick into a list
|
||||||
|
of hex colors."""
|
||||||
# Check if the user has Imagemagick installed.
|
# Check if the user has Imagemagick installed.
|
||||||
if not shutil.which("convert"):
|
if not shutil.which("convert"):
|
||||||
print("error: imagemagick not found, exiting...\n"
|
print("error: imagemagick not found, exiting...\n"
|
||||||
@ -48,7 +49,7 @@ def gen_colors(img):
|
|||||||
|
|
||||||
|
|
||||||
def get_colors(img, quiet):
|
def get_colors(img, quiet):
|
||||||
"""Generate a colorscheme using imagemagick."""
|
"""Get the colorscheme."""
|
||||||
# Cache the wallpaper name.
|
# Cache the wallpaper name.
|
||||||
util.save_file(img, CACHE_DIR / "wal")
|
util.save_file(img, CACHE_DIR / "wal")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user