duangsuse::Echo
😏 Sticker
FONT = Font.FreeTypeFont.read('/usr/...')
(BASE_X, FIXED_Y) = (..., ...)
def compositeText(s):
img = Image.open('panda.png')
(txtW, txtH) = FONT.getSize(s)
txtWd2 = txtW/2 #atom layout calc (width-balance)
img.draw_text(x=(BASE_X-txtWd2), y=FIXED_Y, font=FONT, text=s)
return img #effect
def main():
for text in input().split(" "):
img = compositeText(text)
img.save(f'panda_{text}.png')
别测试,我说着玩的,没看见我没写导入吗? 😂
Forwarded from 层叠 - The Cascading
GitHub 宣布停止 Atom 项目。Atom 组织下 repo 将于今年 12/15 转为归档模式。
https://github.blog/2022-06-08-sunsetting-atom/
#GitHub #Atom #Deprecation
https://github.blog/2022-06-08-sunsetting-atom/
#GitHub #Atom #Deprecation
The GitHub Blog
Sunsetting Atom
We are archiving Atom and all projects under the Atom organization for an official sunset on December 15, 2022.