Skip to content
This repository was archived by the owner on May 15, 2021. It is now read-only.

Commit

Permalink
halloween update
Browse files Browse the repository at this point in the history
  • Loading branch information
code-rgb committed Oct 31, 2020
1 parent 9ed6a1e commit 142cec0
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
Binary file modified resources/ghosts.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/logo_alt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions userge/plugins/fun/x.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

@userge.on_cmd(
"x",
about={"header": "USERGE-X", "flags": {"-alt": "To get inverted X"}},
about={"header": "USERGE-X", "flags": {"-alt": "To get inverted X", "-ghost": "spooky ghost"}},
check_downpath=True,
)
async def usx_(message: Message):
Expand Down Expand Up @@ -44,8 +44,9 @@ async def usx_(message: Message):
for i, color in enumerate(interpolate(f_co, t_co, im.width * 2)):
draw.line([(i, 0), (0, i)], tuple(color), width=1)

gradient = gradient.resize(im.size)
# gradient = gradient.resize(im.size) no need for that
im_composite = Image.alpha_composite(gradient, im)
im_composite = im_composite.resize(im_composite.size, Image.ANTIALIAS)
image_name = "grad_x.webp"
webp_file = os.path.join(Config.DOWN_PATH, image_name)
im_composite.save(webp_file, "WebP")
Expand Down

0 comments on commit 142cec0

Please sign in to comment.