mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
simplify anchor example image
This commit is contained in:
parent
d22608b7bd
commit
6b8d8ac313
Binary file not shown.
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 9.5 KiB |
|
@ -8,8 +8,7 @@ def test(anchor):
|
||||||
d = ImageDraw.Draw(im)
|
d = ImageDraw.Draw(im)
|
||||||
d.line(((100, 0), (100, 100)), "gray")
|
d.line(((100, 0), (100, 100)), "gray")
|
||||||
d.line(((0, 50), (200, 50)), "gray")
|
d.line(((0, 50), (200, 50)), "gray")
|
||||||
d.text((100, 50), "Sample", "black", font, anchor)
|
d.text((100, 50), f"{anchor} example", "black", font, anchor)
|
||||||
d.text((10, 100), "anchor=%s" % anchor, "gray", font, "ld")
|
|
||||||
return im
|
return im
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user