mirror of
https://github.com/Murasame-Dev/McStatus-Img.git
synced 2025-12-16 13:17:40 +00:00
fix motd
This commit is contained in:
parent
96657cbf86
commit
e4a85bee76
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ def draw_motd_text_with_shadow(image: Image.Image,
|
||||||
posy: int | float,
|
posy: int | float,
|
||||||
font: ImageFont.ImageFont | ImageFont.FreeTypeFont):
|
font: ImageFont.ImageFont | ImageFont.FreeTypeFont):
|
||||||
draw = ImageDraw.Draw(image)
|
draw = ImageDraw.Draw(image)
|
||||||
motd_list = foramt_motd(text.strip(), draw)
|
motd_list = foramt_motd(text.strip(), draw, font)
|
||||||
for pos, color, text in motd_list:
|
for pos, color, text in motd_list:
|
||||||
draw.text((posx + pos + 1, posy + 1), text, font=font, fill='black')
|
draw.text((posx + pos + 1, posy + 1), text, font=font, fill='black')
|
||||||
draw.text((posx + pos, posy), text, font=font, fill=getrgb(color))
|
draw.text((posx + pos, posy), text, font=font, fill=getrgb(color))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue