diff options
| author | dylan araps <dylan.araps@gmail.com> | 2017-07-20 12:58:33 +1000 |
|---|---|---|
| committer | dylan araps <dylan.araps@gmail.com> | 2017-07-20 12:58:33 +1000 |
| commit | 8917eef29e0d9279a74c35e0a59b29c9a89fbbc7 (patch) | |
| tree | d820fb3dc232c41d8b92f115309018515bfea6c6 | |
| parent | b8d6049aa89ae560efd03c2bdd3b372edd5392db (diff) | |
api: Update example.
| -rw-r--r-- | examples/example.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/example.py b/examples/example.py index 58de3ce..5e9cad2 100644 --- a/examples/example.py +++ b/examples/example.py @@ -1,10 +1,11 @@ -"""pywal api example.""" import pywal def main(): """Main function.""" - image = "/home/dylan/Pictures/Wallpapers/anVmEaA.jpg" + # Validate image and pick a random image if a + # directory is given below. + image = pywal.get_image("/home/dylan/Pictures/Wallpapers/") # Return a dict with the palette. colors = pywal.create_palette(image) |
