mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-05-31 11:13:08 +03:00
Merge pull request #5560 from radarhere/test_comments
Corrected comments
This commit is contained in:
commit
b939ce4750
|
@ -408,14 +408,15 @@ def test_save_dispose(tmp_path):
|
||||||
def test_dispose2_palette(tmp_path):
|
def test_dispose2_palette(tmp_path):
|
||||||
out = str(tmp_path / "temp.gif")
|
out = str(tmp_path / "temp.gif")
|
||||||
|
|
||||||
# 4 backgrounds: White, Grey, Black, Red
|
# Four colors: white, grey, black, red
|
||||||
circles = [(255, 255, 255), (153, 153, 153), (0, 0, 0), (255, 0, 0)]
|
circles = [(255, 255, 255), (153, 153, 153), (0, 0, 0), (255, 0, 0)]
|
||||||
|
|
||||||
im_list = []
|
im_list = []
|
||||||
for circle in circles:
|
for circle in circles:
|
||||||
|
# Red background
|
||||||
img = Image.new("RGB", (100, 100), (255, 0, 0))
|
img = Image.new("RGB", (100, 100), (255, 0, 0))
|
||||||
|
|
||||||
# Red circle in center of each frame
|
# Circle in center of each frame
|
||||||
d = ImageDraw.Draw(img)
|
d = ImageDraw.Draw(img)
|
||||||
d.ellipse([(40, 40), (60, 60)], fill=circle)
|
d.ellipse([(40, 40), (60, 60)], fill=circle)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user