Compare commits
2 Commits
869668e9e5
...
40197ffde5
Author | SHA1 | Date |
---|---|---|
davidovski | 40197ffde5 | |
davidovski | 3c0dc265ea |
13
gif.py
13
gif.py
|
@ -21,13 +21,16 @@ colors = [
|
|||
color("#191919"),
|
||||
color("#282a2e"),
|
||||
color("#373b41"),
|
||||
color("#f58f44")
|
||||
]
|
||||
colors2 = colors + [
|
||||
color("#f58f44")
|
||||
]
|
||||
|
||||
sorted(colors, key=rgb_to_v)
|
||||
p = len(colors)
|
||||
sorted(colors2, key=rgb_to_v)
|
||||
|
||||
def make(filename, inp=None):
|
||||
def make(filename, colors, inp=None):
|
||||
p = len(colors)
|
||||
w = int(128 / p) * p
|
||||
h = int(128 / p) * p
|
||||
|
||||
|
@ -58,7 +61,7 @@ def make(filename, inp=None):
|
|||
|
||||
frames[0].save(filename, mode="P", format="GIF", append_images=frames[1:], save_all=True, duration=100, loop=0)
|
||||
|
||||
make("dist/images/bg.gif")
|
||||
make("dist/images/remotecontrol.gif", inp="images/remotecontrol-small.png")
|
||||
make("dist/images/bg.gif", colors)
|
||||
make("dist/images/remotecontrol.gif", colors2, inp="images/remotecontrol-small.png")
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue