html rice preview
This commit is contained in:
@@ -116,10 +116,7 @@ def extract_colors(
|
||||
|
||||
return Palette(colors)
|
||||
if __name__ == "__main__":
|
||||
try:
|
||||
img = sys.argv[1]
|
||||
except IndexError:
|
||||
img = "/home/nx2/Pictures/wallpapers/absolute-cinema-acid.png"
|
||||
img = sys.argv[1]
|
||||
|
||||
palette = extract_colors(image=img, palette_size=3)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user