Taka005
commited on
Commit
·
3a6fc62
1
Parent(s):
e162422
fix
Browse files
README.md
CHANGED
|
@@ -7,6 +7,8 @@
|
|
| 7 |
- `/` Make it a Quote画像
|
| 8 |
- `/colour` カラーアイコン
|
| 9 |
- `/reverse` アイコンの位置反転
|
|
|
|
|
|
|
| 10 |
## パラメーター
|
| 11 |
- name: 名前
|
| 12 |
- tag: 4桁のID
|
|
|
|
| 7 |
- `/` Make it a Quote画像
|
| 8 |
- `/colour` カラーアイコン
|
| 9 |
- `/reverse` アイコンの位置反転
|
| 10 |
+
- `/white` 色反転
|
| 11 |
+
- `/reverseWhite` 色反転・アイコンの位置反転
|
| 12 |
## パラメーター
|
| 13 |
- name: 名前
|
| 14 |
- tag: 4桁のID
|
main.py
CHANGED
|
@@ -199,10 +199,10 @@ def reverseWhiteMake(name, tag, id, content, icon):
|
|
| 199 |
|
| 200 |
tx = ImageDraw.Draw(img)
|
| 201 |
|
| 202 |
-
tsize_t = drawText(img, (390, 270), content, size=45, color=(
|
| 203 |
|
| 204 |
name_y = tsize_t[2] + 40
|
| 205 |
-
tsize_name = drawText(img, (390, name_y), f"{name}#{tag}", size=25, color=(
|
| 206 |
|
| 207 |
id_y = name_y + tsize_name[1] + 4
|
| 208 |
tsize_id = drawText(img, (390, id_y), id, size=18, color=(90, 90, 90, 255), split_len=45, disable_dot_wrap=True)
|
|
|
|
| 199 |
|
| 200 |
tx = ImageDraw.Draw(img)
|
| 201 |
|
| 202 |
+
tsize_t = drawText(img, (390, 270), content, size=45, color=(0, 0, 0, 0), split_len=16, auto_expand=True)
|
| 203 |
|
| 204 |
name_y = tsize_t[2] + 40
|
| 205 |
+
tsize_name = drawText(img, (390, name_y), f"{name}#{tag}", size=25, color=(0, 0, 0, 0), split_len=25, disable_dot_wrap=True)
|
| 206 |
|
| 207 |
id_y = name_y + tsize_name[1] + 4
|
| 208 |
tsize_id = drawText(img, (390, id_y), id, size=18, color=(90, 90, 90, 255), split_len=45, disable_dot_wrap=True)
|